Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes 2.x pr 2.x #2096

Merged
merged 248 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
248 commits
Select commit Hold shift + click to select a range
90aeb2c
Improving AWS subnet docs.
gregharvey Nov 22, 2023
c277047
Merge branch '2.x' into bug_fixes_2.x
gregharvey Nov 30, 2023
97570e3
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 12, 2023
7c31b40
Error in timers structure in the SSL role.
gregharvey Dec 12, 2023
44a4d87
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 12, 2023
fd6c81b
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 12, 2023
8a5acaa
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 21, 2023
b75fe03
Removing obsolete backports requirements.
gregharvey Dec 21, 2023
c57b886
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
b270172
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
5b27a8c
Allow the billing role to access Sustainability information.
gregharvey Dec 21, 2023
053097b
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
23bec8f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
883e323
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 21, 2023
dff1847
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 21, 2023
9ca4148
Missing comma in IAM billing policy.
gregharvey Dec 21, 2023
1e07a78
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
fa8c5dc
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
d753fad
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 9, 2024
c8199be
Removing broken GitLab Runner code.
gregharvey Jan 9, 2024
e1b01a8
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 9, 2024
c222fec
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 9, 2024
0ba4138
Fixed the include_role task in gitlab_runner.
gregharvey Jan 10, 2024
aacf70b
Suppressing a failure if there is no system pip to call.
gregharvey Jan 10, 2024
8b20f84
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
6357281
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
c634ef5
Logic error in Ansible installer username, needs to be set from calli…
gregharvey Jan 10, 2024
7e5fb2b
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
2673659
ansible_user is a reserved variable, seems to be causing issues.
gregharvey Jan 10, 2024
3dbd017
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
c6af4c0
_ansible_ANYTHING is reserved, using _install_username instead.
gregharvey Jan 10, 2024
2c487c2
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
b302676
python_boto role also needs the username set in the calling role.
gregharvey Jan 10, 2024
2fe29a1
Updating python_boto docs.
gregharvey Jan 10, 2024
b56f6a2
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
443534d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
32f3ced
Making profile.d loading more robust.
gregharvey Jan 11, 2024
1f8d80e
Also pip removing ansible-core and trying with pip and pip3 to cover …
gregharvey Jan 11, 2024
ff2803f
Updating bad AWS SG role var namespacing in other roles.
gregharvey Jan 11, 2024
edf2185
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 11, 2024
d57d760
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 11, 2024
0966398
Refactoring how we handle python3-pip.
gregharvey Jan 11, 2024
45814bd
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 11, 2024
bf05609
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 11, 2024
6b2b69b
Allow passing in of the Python interpreter to Ansible.
gregharvey Jan 12, 2024
ff82392
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 12, 2024
3c1d06c
Updating the packages server for CE.
gregharvey Jan 15, 2024
f9d55ad
Merging 2.x.
gregharvey Jan 15, 2024
c765a4b
Merging devel.
gregharvey Jan 15, 2024
d6a819e
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2024
2b422a9
Installing Ansible in a venv on all machines.
gregharvey Jan 16, 2024
54585fc
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 16, 2024
33abf0a
Changing common_base format for readability.
gregharvey Jan 16, 2024
a3ef3e9
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 16, 2024
394ec01
No need to specify Python to the point release.
gregharvey Jan 17, 2024
d44cda2
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 17, 2024
3697d1c
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 17, 2024
122e4a8
Merging 2.x.
gregharvey Jan 17, 2024
f906530
Docs update.
gregharvey Jan 17, 2024
1657971
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 17, 2024
54602bc
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 18, 2024
a621f1c
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 18, 2024
e1ab6e7
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 18, 2024
7c43ab0
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 18, 2024
9167265
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 18, 2024
b0c5c34
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 18, 2024
9b63954
Fixing LDAP SSL to use systemd timer.
gregharvey Jan 18, 2024
516f61d
Allowing different systemd timer names for different Ansible installs.
gregharvey Jan 18, 2024
2f9363a
Merge branch 'bug_fixes_2.x-PR-2.x' of github.com:codeenigma/ce-provi…
gregharvey Jan 18, 2024
17f7804
Fixing dynamic key name in ansible role.
gregharvey Jan 19, 2024
75d9919
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 19, 2024
3f9f67e
Trying to debug missing timer_command var.
gregharvey Jan 19, 2024
e34d247
Treating the timer string so it becomes a dict.
gregharvey Jan 19, 2024
2d0d5e7
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 19, 2024
d8b3d89
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 22, 2024
170c782
Moving default log location for clamav.
gregharvey Jan 22, 2024
84c15bf
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 22, 2024
21f882b
Updating ClamAV docs.
gregharvey Jan 22, 2024
48758c1
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 22, 2024
0950374
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 24, 2024
a15256e
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 25, 2024
a57c5ff
Grouping systemd timer tasks together.
gregharvey Jan 25, 2024
6d96c0c
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 25, 2024
cc223d2
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 25, 2024
b4473ca
Merge branch '2.x' into bug_fixes_2.x
gregharvey Feb 21, 2024
36a52ee
Exposing ce-provision version in build output.
gregharvey Feb 21, 2024
7739831
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Feb 21, 2024
e6217f1
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Feb 21, 2024
a1f51a1
Merge branch '2.x' into bug_fixes_2.x
gregharvey Feb 23, 2024
a02e9e5
Wrong variable in meta role for controller username.
gregharvey Feb 23, 2024
3597b41
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Feb 23, 2024
4b0c62f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Feb 23, 2024
b8c2c72
Merging 2.x.
gregharvey May 13, 2024
bd22857
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 13, 2024
206b36e
Removing any reference to _aws variables in debian role defaults.
gregharvey May 13, 2024
091a1a8
Merging 2.x.
gregharvey May 13, 2024
5bd3a2f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 13, 2024
a669010
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 14, 2024
8ee9e69
Setting more sane ASG defaults.
gregharvey May 14, 2024
f56da67
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 14, 2024
f143188
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 14, 2024
aff0054
Making ClamAV timers a list so they can be entirely replaced.
gregharvey May 14, 2024
83d721a
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 14, 2024
23a55de
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 14, 2024
cb4f6eb
Spacing fix for linting.
gregharvey May 16, 2024
7103006
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 22, 2024
ad20385
Renaming npm module.
gregharvey May 22, 2024
3285e19
Merging 2.x.
gregharvey May 22, 2024
437fc49
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 22, 2024
6ada751
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 22, 2024
e97ea5d
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 27, 2024
cf6d60c
Removing NGINX installation as part of phpMyAdmin role by default.
gregharvey May 27, 2024
336bd0a
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
3f4a090
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
3de5bf6
Fixing Varnish handler names.
gregharvey May 27, 2024
502d031
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
edcccfb
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
cda4642
Excluding name[casing] rule from linting due to false positives.
gregharvey May 27, 2024
b6550df
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
3a25d9b
Put rule in wrong place!
gregharvey May 27, 2024
31bb61a
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
4fa0f63
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 29, 2024
31b7e90
Removing lock file behaviour from ASGs as it cannot work unless contr…
gregharvey May 29, 2024
34d295d
Capturing lock file limitations in comment.
gregharvey May 29, 2024
afe08e5
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 29, 2024
27cb997
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 29, 2024
792fcca
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 31, 2024
af108d7
Updating documentation for LE.
gregharvey May 31, 2024
b14da19
Using pip to install certbot plugins.
gregharvey May 31, 2024
0620270
Updating README docs.
gregharvey May 31, 2024
acd5c32
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
0dfe16d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
ebda10c
Docs error corrected.
gregharvey May 31, 2024
0fe340e
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
77027e6
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
9acaddc
Working around deprecated SSH algorithms.
gregharvey May 31, 2024
9f756aa
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
7df612d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
581e2af
Upgrading SSH key type standard for controller and deploy users.
gregharvey Jun 3, 2024
58b53a8
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 3, 2024
f6ed39f
Adding SCP args for legacy mode needed by Packer.
gregharvey Jun 3, 2024
8d7d5cd
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 3, 2024
f43419c
Adding an extra when clause to ACM SAN cert check.
gregharvey Jun 4, 2024
81992fd
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 4, 2024
b394880
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 4, 2024
027a205
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jun 4, 2024
511ac8d
Trying different approach to ACM SAN cert check.
gregharvey Jun 4, 2024
8cee772
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jun 4, 2024
ebd4a9d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 4, 2024
faedbb8
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jun 4, 2024
f480f74
Removing /bin/which from rkhunter defaults, it isn't present in Debia…
gregharvey Jun 5, 2024
60b9e21
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jun 5, 2024
be890ba
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 5, 2024
5eae4cf
RDS param group module has changed name.
gregharvey Jun 5, 2024
2e72617
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 5, 2024
14516cb
Adding passlib to libraries installed for ce-provision.
gregharvey Jun 5, 2024
69ce894
Adding in valid path for 'which' to rkhunter.
gregharvey Jun 5, 2024
e5e1830
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jun 5, 2024
51c6c35
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 5, 2024
49f2b1f
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jun 5, 2024
e901344
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jun 13, 2024
1a0241a
Catching up documentation.
gregharvey Jun 13, 2024
5001c61
Catching up documentation.
gregharvey Jun 13, 2024
e1c15c0
Making user creation optional and home directories a variable.
gregharvey Jun 13, 2024
c4239f1
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jun 13, 2024
3b255db
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 13, 2024
fff110e
Missed passing new home var to task.
gregharvey Jun 13, 2024
eab304a
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 13, 2024
9f4e359
Fixing firewall.bash deletion issues.
gregharvey Jun 13, 2024
b6bd16a
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jun 13, 2024
13eb164
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 13, 2024
59b330e
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jun 13, 2024
f751953
Getting rid of accidental extra braces.
gregharvey Jun 13, 2024
f556342
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jun 13, 2024
df358c1
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 13, 2024
f034b42
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jun 13, 2024
5fef05f
Simplifying usernames so you only need to set one var.
gregharvey Jun 13, 2024
c1c5d6b
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jun 13, 2024
85f4a91
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 13, 2024
096e90a
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jun 13, 2024
7e39e24
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jul 18, 2024
6fcda09
Docs update and making Ansible installation via _init an option.
gregharvey Jul 18, 2024
50c9eb4
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jul 18, 2024
35fb451
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jul 18, 2024
98dc840
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jul 18, 2024
87f82aa
Variable path error.
gregharvey Jul 18, 2024
06f9c8d
Updating linter ignore paths.
gregharvey Jul 18, 2024
765b9b7
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jul 18, 2024
4e86558
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jul 18, 2024
3fc282b
Making the NGINX test result var private.
gregharvey Jul 19, 2024
088e90e
Merge branch '2.x' into bug_fixes_2.x
gregharvey Sep 11, 2024
cc35195
Documentation update.
gregharvey Sep 11, 2024
9c1e2cb
Fixing role dependency in NGINX role.
gregharvey Sep 11, 2024
82640ec
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Sep 11, 2024
300d706
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Sep 11, 2024
a5d4717
Merge branch '2.x' into bug_fixes_2.x
gregharvey Sep 16, 2024
d221f9b
Adding installation path handling for Galaxy collections.
gregharvey Sep 16, 2024
7e48afa
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Sep 16, 2024
6c61302
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Sep 16, 2024
ca0a702
Removing -p option due to unexpected ill effects for role paths.
gregharvey Sep 16, 2024
0b73952
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Sep 16, 2024
7bc1d29
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Sep 16, 2024
3905417
Merge branch '2.x' into bug_fixes_2.x
gregharvey Sep 16, 2024
e4fbb22
Merge branch '2.x' into bug_fixes_2.x
gregharvey Sep 19, 2024
d2104fc
Merge branch '2.x' into bug_fixes_2.x
gregharvey Sep 19, 2024
6707454
Moving X-Content-Type-Options header to project type templates.
gregharvey Sep 19, 2024
2f15b32
Adding some inline documentation.
gregharvey Sep 19, 2024
059b005
Merging 2.x.
gregharvey Sep 19, 2024
93d4404
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Sep 19, 2024
e26ce5a
Fixing Postfix template to allow external relays.
gregharvey Sep 19, 2024
2ec596e
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Sep 19, 2024
72b35a7
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Sep 19, 2024
b110a53
Merge branch '2.x' into bug_fixes_2.x
gregharvey Sep 19, 2024
ee38316
Adding a FQDN postfix transport map.
gregharvey Sep 19, 2024
d94fbd3
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Sep 19, 2024
68ba57c
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Sep 19, 2024
cb95a5a
Merge branch '2.x' into bug_fixes_2.x
gregharvey Sep 19, 2024
d30ef9a
Merge branch '2.x' into bug_fixes_2.x
gregharvey Nov 20, 2024
3747b39
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 3, 2024
3f3643f
Updating CI to 2.x.
gregharvey Dec 3, 2024
702561c
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Dec 3, 2024
f404ed7
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 3, 2024
bb57d35
Defending against missing Ansible.
gregharvey Dec 3, 2024
7db8636
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 3, 2024
c42be9e
Making the ce-provision-config branch in CI dynamic.
gregharvey Dec 3, 2024
8614b57
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 3, 2024
f120ac9
We do not want a 'ce-dev provision' because it breaks our controller.
gregharvey Dec 3, 2024
a41cdea
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 3, 2024
3820afc
Reverting 'ce-dev provision' change.
gregharvey Dec 3, 2024
a913281
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 3, 2024
3533e18
Trying a different ansible_facts var.
gregharvey Dec 4, 2024
81b1614
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
585277b
Testing using the source branch in ce-dev.
gregharvey Dec 4, 2024
ff72e70
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
e6b8750
Setting max_childen to an integer to avoid CI issues.
gregharvey Dec 4, 2024
7394c84
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
0d0509b
Trying to change the python interpreter used.
gregharvey Dec 4, 2024
7c5a800
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
67c6e4f
Adding platform and cgroup values to ce-dev compose template.
gregharvey Dec 4, 2024
68b1f0c
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
0efc243
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 4, 2024
018584c
Trying latest ubuntu containers in GitHub Actions.
gregharvey Dec 4, 2024
3829480
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Dec 4, 2024
7678d13
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
35b6def
Fixing the test.sh script to work with venvs.
gregharvey Dec 4, 2024
115d048
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
251e9bb
Documentation for PHP in CI.
gregharvey Dec 4, 2024
e1bcd87
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ce-provision-test-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
# Name the Job
name: Run tests against Ansible code base
# Set the type of machine to run on
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
# Checks out a copy of your repository on the ubuntu-latest machine
Expand All @@ -31,12 +31,12 @@ jobs:
sudo mv ./mkcert /usr/local/bin && cd ../
sudo chmod +x /usr/local/bin/mkcert
rm -Rf mkcert
curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/1.x/install.sh | /bin/sh -s -- linux
curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/${{ github.event.pull_request.base.ref }}/install.sh | /bin/sh -s -- --platform linux

# Uses the ce-dev stack to run a test provision
- name: Run a test provision
if: ${{ github.event.pull_request.head.ref != 'documentation' }}
run: |
git clone --branch 1.x https://github.com/codeenigma/ce-dev-ce-provision-config.git config
/bin/bash ce-dev/ansible/test.sh --examples web --own-branch ${{ github.event.pull_request.base.ref }} --config-branch ${{ github.event.pull_request.base.ref }}
git clone --branch ${{ github.event.pull_request.base.ref }} https://github.com/codeenigma/ce-dev-ce-provision-config.git config
/bin/bash ce-dev/ansible/test.sh --examples web --own-branch ${{ github.event.pull_request.head.ref }} --config-branch ${{ github.event.pull_request.base.ref }}
shell: bash
20 changes: 20 additions & 0 deletions ce-dev/ansible/plays/_common/setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# Run the _init role to correctly install Ansible first.
- hosts: provision-target
become: true

vars:
project_name: blank
is_local: true
_ce_provision_base_dir: /home/ce-dev/ce-provision
_init:
force_play: true
vars_dirs:
- "{{ _ce_provision_base_dir }}/ce-dev/ansible/vars/_common"
- "{{ _ce_provision_base_dir }}/ce-dev/ansible/vars/{{ project_name }}"

tasks:
- ansible.builtin.import_role:
name: _init
- ansible.builtin.import_role:
name: _exit
12 changes: 8 additions & 4 deletions ce-dev/ansible/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,19 @@ provision-target
provision-privileged
EOT
PROVISION_CMD="/bin/sh /home/ce-dev/ce-provision/scripts/provision.sh"
echo "# Executing $1 project"
PROVISION_CMD="$PROVISION_CMD --repo dummy --branch dummy --workspace /home/ce-dev/ce-provision/ce-dev/ansible --playbook plays/$1/$1.yml --own-branch $2 --config-branch $3 --force"
if [ $VERBOSE = true ]; then
echo "# In verbose mode"
PROVISION_CMD="$PROVISION_CMD --verbose"
fi
echo "# Running command: $PROVISION_CMD"
echo "# Executing $1 project"
PROVISION_EXEC="$PROVISION_CMD --repo dummy --branch dummy --workspace /home/ce-dev/ce-provision/ce-dev/ansible --playbook plays/_common/setup.yml --own-branch $2 --config-branch $3 --force"
echo "# Installing Ansible in a venv: $PROVISION_EXEC"
# shellcheck disable=SC2086
sudo docker exec -t --workdir /home/ce-dev/ce-provision --user ce-dev provision-controller $PROVISION_EXEC
PROVISION_EXEC="$PROVISION_CMD --python-interpreter /home/ce-dev/ce-python/bin/python3 --repo dummy --branch dummy --workspace /home/ce-dev/ce-provision/ce-dev/ansible --playbook plays/$1/$1.yml --own-branch $2 --config-branch $3 --force"
echo "# Running command: $PROVISION_EXEC"
# shellcheck disable=SC2086
sudo docker exec -t --workdir /home/ce-dev/ce-provision --user ce-dev provision-controller $PROVISION_CMD
sudo docker exec -t --workdir /home/ce-dev/ce-provision --user ce-dev provision-controller $PROVISION_EXEC
echo "### $1 project completed ###"
}

Expand Down
2 changes: 1 addition & 1 deletion ce-dev/ansible/vars/provision/ce_provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ce_provision:
own_repository_branch: "devel-2.x"
own_repository_skip_checkout: true
config_repository: "https://github.com/codeenigma/ce-dev-ce-provision-config.git"
config_repository_branch: "1.x"
config_repository_branch: "devel-2.x"
config_repository_skip_checkout: true
local_dir: "/home/ce-dev/ce-provision"
galaxy_custom_requirements_file: "/home/ce-dev/ce-provision/ce-dev/ansible/vars/provision/galaxy-requirements.yml"
Expand Down
5 changes: 4 additions & 1 deletion ce-dev/ansible/vars/web/php.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
php:
version:
- 8.1
- 8.1
# GitHub Actions doesn't make ansible_facts for CPU info available
fpm:
max_children: 5
6 changes: 6 additions & 0 deletions ce-dev/ce-dev.compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
x-ce_dev: {}
volumes:
- ../:/home/ce-dev/ce-provision
platform: linux/amd64
cgroup: host
target:
image: codeenigma/ce-dev-1.x:devel
x-ce_dev:
Expand All @@ -21,6 +23,8 @@ services:
- 443
cap_add:
- NET_ADMIN
platform: linux/amd64
cgroup: host
privileged:
image: codeenigma/ce-dev-1.x:devel
x-ce_dev:
Expand All @@ -32,3 +36,5 @@ services:
- 443
cap_add:
- NET_ADMIN
platform: linux/amd64
cgroup: host
2 changes: 1 addition & 1 deletion docs/roles/debian/php-fpm.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ php:
# It is important to scale up processes on bigger servers, so that more
# requests can be handled. Double the number of vCPUs is a good default.
# Can be between 5 and 64.
max_children: "{{ [5, [ansible_facts.processor_vcpus * 2, 64] | min] | max }}"
max_children: "{{ [5, [ansible_facts.ansible_processor_nproc * 2, 64] | min] | max }}"
start_servers: 2
min_spare_servers: 1
max_spare_servers: 3
Expand Down
2 changes: 1 addition & 1 deletion roles/debian/php-common/templates/sury.pref.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Package: *
Pin: origin packages.sury.org/deb/
Pin-Priority: 1101
Pin-Priority: 1101
2 changes: 1 addition & 1 deletion roles/debian/php-fpm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ php:
# It is important to scale up processes on bigger servers, so that more
# requests can be handled. Double the number of vCPUs is a good default.
# Can be between 5 and 64.
max_children: "{{ [5, [ansible_facts.processor_vcpus * 2, 64] | min] | max }}"
max_children: "{{ [5, [ansible_facts.ansible_processor_nproc * 2, 64] | min] | max }}"
start_servers: 2
min_spare_servers: 1
max_spare_servers: 3
Expand Down
2 changes: 1 addition & 1 deletion roles/debian/php-fpm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ php:
# It is important to scale up processes on bigger servers, so that more
# requests can be handled. Double the number of vCPUs is a good default.
# Can be between 5 and 64.
max_children: "{{ [5, [ansible_facts.processor_vcpus * 2, 64] | min] | max }}"
max_children: "{{ [5, [ansible_facts.ansible_processor_nproc * 2, 64] | min] | max }}"
start_servers: 2
min_spare_servers: 1
max_spare_servers: 3
Expand Down
15 changes: 13 additions & 2 deletions scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,25 @@ cleanup_build_tmp_dir(){
rm -rf "$BUILD_TMP_DIR"
fi
}

# Trigger actual Ansible job.
ansible_play(){
if [ -z "$ANSIBLE_PATH" ]; then
if [ "$LINT" = "yes" ]; then
# apt repo installed
ANSIBLE_BIN=$(command -v ansible-lint)
if ! command -v ansible-lint; then
echo "### Could not find ansible-lint - Exiting! ###"
exit 1
else
ANSIBLE_BIN=$(command -v ansible-lint)
fi
else
ANSIBLE_BIN=$(command -v ansible-playbook)
if ! command -v ansible-playbook; then
echo "### Could not find ansible-playbook - Exiting! ###"
exit 1
else
ANSIBLE_BIN=$(command -v ansible-playbook)
fi
fi
else
if [ "$LINT" = "yes" ]; then
Expand Down
Loading