This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20b7654
commit df60dd1
Showing
13 changed files
with
171 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
skip_list: | ||
- '306' | ||
- '405' | ||
- '503' | ||
- '106' | ||
- 'yaml' | ||
- 'risky-shell-pipe' | ||
- 'no-handler' | ||
- 'role-name' |
80 changes: 80 additions & 0 deletions
80
provisioning/roles/geerlingguy.php/.github/workflows/ci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
name: CI | ||
'on': | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: "0 4 * * 4" | ||
|
||
defaults: | ||
run: | ||
working-directory: 'geerlingguy.php' | ||
|
||
jobs: | ||
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the codebase. | ||
uses: actions/checkout@v2 | ||
with: | ||
path: 'geerlingguy.php' | ||
|
||
- name: Set up Python 3. | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install test dependencies. | ||
run: pip3 install yamllint | ||
|
||
- name: Lint code. | ||
run: | | ||
yamllint . | ||
molecule: | ||
name: Molecule | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- distro: centos8 | ||
playbook: converge.yml | ||
- distro: centos7 | ||
playbook: converge.yml | ||
- distro: ubuntu2004 | ||
playbook: converge.yml | ||
- distro: ubuntu1804 | ||
playbook: converge.yml | ||
- distro: debian10 | ||
playbook: converge.yml | ||
- distro: debian9 | ||
playbook: converge.yml | ||
|
||
- distro: centos7 | ||
playbook: source-install.yml | ||
|
||
steps: | ||
- name: Check out the codebase. | ||
uses: actions/checkout@v2 | ||
with: | ||
path: 'geerlingguy.php' | ||
|
||
- name: Set up Python 3. | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install test dependencies. | ||
run: pip3 install ansible molecule[docker] docker | ||
|
||
- name: Run Molecule tests. | ||
run: molecule test | ||
env: | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
MOLECULE_DISTRO: ${{ matrix.distro }} | ||
MOLECULE_PLAYBOOK: ${{ matrix.playbook }} |
38 changes: 38 additions & 0 deletions
38
provisioning/roles/geerlingguy.php/.github/workflows/release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
# This workflow requires a GALAXY_API_KEY secret present in the GitHub | ||
# repository or organization. | ||
# | ||
# See: https://github.com/marketplace/actions/publish-ansible-role-to-galaxy | ||
# See: https://github.com/ansible/galaxy/issues/46 | ||
|
||
name: Release | ||
'on': | ||
push: | ||
tags: | ||
- '*' | ||
|
||
defaults: | ||
run: | ||
working-directory: 'geerlingguy.php' | ||
|
||
jobs: | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the codebase. | ||
uses: actions/checkout@v2 | ||
with: | ||
path: 'geerlingguy.php' | ||
|
||
- name: Set up Python 3. | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install Ansible. | ||
run: pip3 install ansible-base | ||
|
||
- name: Trigger a new import on Galaxy. | ||
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.retry | ||
*/__pycache__ | ||
*.pyc | ||
.cache | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ galaxy_info: | |
platforms: | ||
- name: EL | ||
versions: | ||
- 6 | ||
- 7 | ||
- 8 | ||
- name: Fedora | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
[www] | ||
listen = 127.0.0.1:9000 | ||
listen.allowed_clients = 127.0.0.1 | ||
; {{ ansible_managed }} | ||
|
||
[{{ item.pool_name | mandatory }}] | ||
listen = {{ item.pool_listen | mandatory }} | ||
listen.allowed_clients = {{ item.pool_listen_allowed_clients | default('127.0.0.1', true) }} | ||
user = {{ php_fpm_pool_user }} | ||
group = {{ php_fpm_pool_group }} | ||
|
||
listen.owner = {{ php_fpm_pool_user }} | ||
listen.group = {{ php_fpm_pool_group }} | ||
|
||
pm = dynamic | ||
pm.max_children = 50 | ||
pm.start_servers = 5 | ||
pm.min_spare_servers = 5 | ||
pm.max_spare_servers = 5 | ||
pm.max_requests = 500 | ||
pm = {{ item.pool_pm | default('dynamic', true) }} | ||
pm.max_children = {{ item.pool_pm_max_children | default(50, true) }} | ||
pm.start_servers = {{ item.pool_pm_start_servers | default(5, true) }} | ||
pm.min_spare_servers = {{ item.pool_pm_min_spare_servers | default(5, true) }} | ||
pm.max_spare_servers = {{ item.pool_pm_max_spare_servers | default(5, true) }} | ||
pm.max_requests = {{ item.pool_pm_max_requests | default(500, true) }} |