Skip to content

Bug fixes 2.x pr 2.x #2259

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

Merged
merged 456 commits into from
Jan 17, 2025
Merged
Changes from all commits
Commits
Show all changes
456 commits
Select commit Hold shift + click to select a range
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
6f7aa28
Adding GitLab test back in.
gregharvey Dec 4, 2024
7652cac
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Dec 4, 2024
ca93502
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
3b64160
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 4, 2024
40c687c
Fixing role namespaces.
gregharvey Dec 4, 2024
8f5e1bb
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 4, 2024
616ad28
Minor bug fixes to ce-provision installer.
gregharvey Dec 6, 2024
c12de39
Testing installing ce-provision in the GitHub Actions container direc…
gregharvey Dec 6, 2024
8c27f81
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Dec 6, 2024
b7a56a7
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 6, 2024
6b5e7f9
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 6, 2024
dee1878
Using the submitted install script as well.
gregharvey Dec 6, 2024
6287df3
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 6, 2024
6619ecb
Trying as runner user.
gregharvey Dec 6, 2024
98b6097
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 6, 2024
e1d415f
Trying to use the ce-dev base container.
gregharvey Dec 6, 2024
9c70d0f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 6, 2024
7615545
Updating key name.
gregharvey Dec 16, 2024
97cbef7
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Dec 16, 2024
bb135bb
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
55c663a
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 16, 2024
e46c1b7
Suppressing systemd actions in Docker.
gregharvey Dec 16, 2024
dea6e45
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
eaac4f5
Seems Ansible flags have changed.
gregharvey Dec 16, 2024
09284c9
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
cf7e362
Still trying to get --extra-vars right!
gregharvey Dec 16, 2024
f6ec05b
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
78f5e81
Catching Ansible Galaxy upgrade timers for docker containers.
gregharvey Dec 16, 2024
5fac3b5
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
d462500
Trying to force --roles-path for Galaxy.
gregharvey Dec 16, 2024
fbfc173
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
34b8bcb
Trying different quotes.
gregharvey Dec 16, 2024
774abff
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
14d4a46
Missed a line.
gregharvey Dec 16, 2024
f727301
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
247cc29
Trying a different approach to passing vars.
gregharvey Dec 16, 2024
d4d2634
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
cb0e7fb
Adding some debug.
gregharvey Dec 16, 2024
ea1fe40
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
2d63cf6
Running ce-python debug first.
gregharvey Dec 16, 2024
5613e27
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
3f546ed
Trying moving to the ce-provision directory.
gregharvey Dec 16, 2024
722e9d5
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
7d1a0c5
Checking the specific path to galaxy roles in ce-provision.
gregharvey Dec 16, 2024
a9dac89
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
46656f0
Trying as controller user again.
gregharvey Dec 16, 2024
483dfbe
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
b2392a0
Trying to make the roles dir.
gregharvey Dec 16, 2024
bf5a0f3
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
cd7cbcb
Being consistent about paths in bash.
gregharvey Dec 16, 2024
14847df
Removing debug lines for now.
gregharvey Dec 16, 2024
8d9add0
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
de9b496
Allowing script to skip iptables.
gregharvey Dec 16, 2024
e18e52c
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
4510117
Misnamed flag.
gregharvey Dec 16, 2024
b89ed9e
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
78d6318
Adding user_provision role to configure controller user.
gregharvey Dec 16, 2024
6b82c07
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
1343c7b
Wrapping cleanup so it doesn't break GitHub Actions.
gregharvey Dec 16, 2024
4e70e4b
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
5d5b95e
Completing variables for user_provisin.
gregharvey Dec 16, 2024
bc62a20
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
3184d96
Missed the sudoers var.
gregharvey Dec 16, 2024
c9b00d3
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
d56d1be
Quoting vars.
gregharvey Dec 16, 2024
a4531ee
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
953a925
GitLab installer needs _domain_name.
gregharvey Dec 16, 2024
a5d118a
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
49643d3
Logic error in clean-up script.
gregharvey Dec 16, 2024
60e2539
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
b0f7731
Fixing paths to ce-provision in container.
gregharvey Dec 16, 2024
2dddfbc
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
73fbf87
Trying to fix CI perms issues.
gregharvey Dec 16, 2024
f9f1654
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
dcd04c8
Git dubious ownership error.
gregharvey Dec 16, 2024
21254aa
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
cccda4c
Git dubious ownership error.
gregharvey Dec 16, 2024
6ca3e6d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
f41b60d
Running the web server test as the controller user.
gregharvey Dec 16, 2024
b4be9bc
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
0c20f29
Missed a controller var.
gregharvey Dec 16, 2024
4e6520e
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
2401969
Commenting out the CE container to test.
gregharvey Dec 16, 2024
e2ccc80
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
6674206
Adding a separate step for Git actions.
gregharvey Dec 16, 2024
1b44b54
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
4d2e9f5
Need sudo for Ubuntu.
gregharvey Dec 16, 2024
ffa379a
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 16, 2024
7434274
Using a volume to persist data between steps.
gregharvey Dec 17, 2024
f2b9266
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Dec 17, 2024
705224f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 17, 2024
eee31e7
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 17, 2024
aa4bed8
Adding debug commands to test volumes.
gregharvey Dec 17, 2024
7f3560b
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 17, 2024
75e27c3
Tweaking volumes.
gregharvey Dec 17, 2024
038912f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 17, 2024
c63f440
Adding the checkout command back in.
gregharvey Dec 17, 2024
d9af7c3
Trying a different approach.
gregharvey Dec 17, 2024
cec85fb
ls command looks good, so putting web build back in.
gregharvey Dec 17, 2024
8865958
More Ansible Galaxy debug.
gregharvey Dec 17, 2024
f5d3c45
Trying to make ansible-galaxy detect installed roles.
gregharvey Dec 17, 2024
8985c3d
Run galaxy command as controller.
gregharvey Dec 17, 2024
85d091f
Trying galaxy command and cd wrapped in su.
gregharvey Dec 17, 2024
2f56b6a
Specifically checking the contents of galaxy/roles.
gregharvey Dec 17, 2024
f3fff36
Trying a double-tap install process.
gregharvey Dec 17, 2024
d16e169
Quick refactor and debug of SSH.
gregharvey Dec 17, 2024
29c82cf
Adding OpenSSH server package.
gregharvey Dec 17, 2024
d3e72f1
Checking for a firewall.
gregharvey Dec 17, 2024
031eeea
Checking listening packages.
gregharvey Dec 17, 2024
d75c8ef
Starting SSHD especially.
gregharvey Dec 17, 2024
3d9f51e
Starting SSHD without systemd.
gregharvey Dec 17, 2024
db2dde6
Pre-empting config a bit more.
gregharvey Dec 17, 2024
53c17cd
More galaxy path debug.
gregharvey Dec 17, 2024
a82ec29
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 17, 2024
e77584f
Running a find to see if we can find the missing roles.
gregharvey Dec 17, 2024
73f0682
More verbosity.
gregharvey Dec 17, 2024
b2f3fd4
Checking for missing requirements file.
gregharvey Dec 17, 2024
77709be
Removing eroneous when clause.
gregharvey Dec 17, 2024
e0cbd16
Tidying up redundant debug lines.
gregharvey Dec 17, 2024
704c912
Creating a separate ci.yml play targeting localhost.
gregharvey Dec 17, 2024
3ce84d5
Making sure sshd is running.
gregharvey Dec 17, 2024
ebbb829
Tidying up GitLab CI file and installing SSHD.
gregharvey Dec 17, 2024
6ddd208
Installing SSHD as a separate step.
gregharvey Dec 17, 2024
9f616ad
SSHD already installed, starting it instead.
gregharvey Dec 17, 2024
4d81918
Don't create systemd timers in containers.
gregharvey Dec 17, 2024
cfe0e2d
Preparing a test GitLab build.
gregharvey Dec 17, 2024
5e54b36
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Dec 17, 2024
1934c1d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 17, 2024
62c2bb1
Making builds nightly and fixing GitLab role bug.
gregharvey Dec 17, 2024
ceeb04f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 17, 2024
eeb5f74
Ensuring is_local var exists and making lock behaviour optional.
gregharvey Dec 18, 2024
d8f4984
Fixing location and owner of Blackfire config so it is configurable.
gregharvey Dec 18, 2024
66bd1e4
Documentation update.
gregharvey Dec 18, 2024
c6a4106
Removing all is defined checks for is_local since it is now always de…
gregharvey Dec 18, 2024
9a67b87
Letting GitLab know it's on Docker earlier.
gregharvey Dec 18, 2024
a32acaa
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 18, 2024
a66eacc
Trying to run runsvdir-start to avoid container freezing.
gregharvey Dec 18, 2024
94d118a
Temporarily skipping reconfigure of GitLab to test the rest.
gregharvey Dec 18, 2024
e570972
Trying to move GitLab reconfigure commands to CI.
gregharvey Dec 18, 2024
8b101e6
Fixing service namespace for runner and reinstating GitLab tasks.
gregharvey Dec 18, 2024
3f2f078
Trying to get config script working for GitLab in CI.
gregharvey Dec 18, 2024
39e7e70
No systemd, do not try to restart gitlab-runner.
gregharvey Dec 18, 2024
f3842a1
Removing firewall role from CI GitLab test, don't need it and it brea…
gregharvey Dec 18, 2024
bea012f
Outputting PostGreSQL logs to see if there are errors.
gregharvey Dec 18, 2024
9bafd07
Outputting PostGreSQL logs to see if there are errors.
gregharvey Dec 18, 2024
dd7e685
Trying the config script for GitLab again.
gregharvey Dec 18, 2024
bfdefea
Suppressing extra GitLab config for CI runs.
gregharvey Dec 18, 2024
c3bc3ad
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 18, 2024
e1dc0ac
Setting Blackfire CLI defaults to use ce-dev user.
gregharvey Dec 18, 2024
c338c6f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 18, 2024
56a80f7
Merging 2.x.
gregharvey Jan 14, 2025
7133d72
Improving GitLab vars and adding force stop feature.
gregharvey Jan 14, 2025
fcbad7e
Not installed aws_credentials in meta roles if AWS support disabled.
gregharvey Jan 14, 2025
141702f
Merging 2.x
gregharvey Jan 14, 2025
9ee249a
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 14, 2025
a701c4a
Most people will not want pam_ldap or pam_linotp, should not be in meta.
gregharvey Jan 14, 2025
5cdaf0f
If you don't create LDAP SSL certs you might not have a /etc/ldap dir…
gregharvey Jan 14, 2025
d860378
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jan 14, 2025
74514e7
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 14, 2025
8bad73b
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 14, 2025
253330a
Adding a merge of the main branch into the docs branch to CI.
gregharvey Jan 15, 2025
2dc5acb
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jan 15, 2025
079373a
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
2e4e634
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 15, 2025
9e41783
Adding comment to not use hyphens in boto profile names.
gregharvey Jan 15, 2025
3ca3416
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
e091be9
Supporting different key types to publish to AWS.
gregharvey Jan 15, 2025
358aea1
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
9319fac
Adding a git fetch before the merge in docs publishing.
gregharvey Jan 15, 2025
389aad7
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jan 15, 2025
ba22f65
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
748e29e
Merging 2.x
gregharvey Jan 15, 2025
11db615
Using the safer _ce_provision_username var in AWS key role.
gregharvey Jan 15, 2025
534ed80
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
4883e4c
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 15, 2025
a6ec32f
Adding the --allow-unrelated-histories flag to git merge in CI.
gregharvey Jan 15, 2025
f9d67be
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jan 15, 2025
c898f81
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
ad125d8
Commenting out some of the AWS ACL rulesets to leave them as examples.
gregharvey Jan 15, 2025
75de05a
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
2469388
Trying to pull the docs branch to ensure it is up to date.
gregharvey Jan 15, 2025
c73b7a9
Adding keyserver.ubuntu.com to the key servers we publish to by defau…
gregharvey Jan 15, 2025
66bd3a4
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jan 15, 2025
63e7c03
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
d84e55a
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 15, 2025
d03a030
CI updates and improving SOPS role.
gregharvey Jan 15, 2025
4a6f6c4
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jan 15, 2025
600c55d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
5ff88c0
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 15, 2025
6a2b262
Swapping hard coded branch names for vars in CI.
gregharvey Jan 15, 2025
3745b66
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
d2bf05d
Giving up on merging 2.x - will have to try another approach.
gregharvey Jan 15, 2025
76bdba4
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jan 15, 2025
e543e45
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2025
e1216b1
Merging 2.x
gregharvey Jan 15, 2025
9b6418f
Merging 2.x
gregharvey Jan 16, 2025
59b8933
Merging 2.x
gregharvey Jan 16, 2025
7b023bf
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 16, 2025
ca8ba7f
Change of approach to Packer plugin management.
gregharvey Jan 16, 2025
6781e87
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jan 16, 2025
8f3c794
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 16, 2025
f068cc4
Brain fart on package names.
gregharvey Jan 16, 2025
ca61b94
Merging 2.x
gregharvey Jan 16, 2025
e64148a
Renaming task.
gregharvey Jan 16, 2025
39de3f5
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 16, 2025
3bd6d8f
Reorganising the GitLab Runner role into blocks.
gregharvey Jan 17, 2025
21bef23
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Jan 17, 2025
8b52b79
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 17, 2025
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
45 changes: 26 additions & 19 deletions roles/debian/gitlab_runner/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -2,6 +2,29 @@
gitlab_runner:
apt_origin: "origin=packages.gitlab.com/runner/gitlab-runner,codename=${distro_codename},label=gitlab-runner" # used by apt_unattended_upgrades
apt_signed_by: https://packages.gitlab.com/runner/gitlab-runner/gpgkey
use_docker: false # set to true to install Docker and use the 'docker' executor
install_fargate: false
restart: true # set to false if you're applying settings to a server responsible for its own runners
username: "{{ ce_deploy.username }}"
docker_group: "docker"
runner_workingdir: "/home/{{ ce_deploy.username }}/build"
runner_config: "/etc/gitlab-runner/config.toml"
# see https://gitlab.com/gitlab-org/ci-cd/custom-executor-drivers/fargate/-/tree/master/docs
fargate:
cluster: "my-cluster" # ECS cluster name
profile: "example" # AWS boto profile name - can be substituted for "{{ _aws_profile }}" if set
region: "eu-west-1" # AWS region name - can be substituted for "{{ _aws_region }}" if set
subnet: "subnet-abcdef123456" # subnet ID
security_group: "my-security-group" # SG name
task_definition: "my-task:1" # task definition in format name:revision, if revision is not provided ECS will use latest
public_ip: "false" # if your containers need a public IP assigning
version: "1.4.0" # Fargate platform version
metadata_dir: "/opt/gitlab-runner/metadata"
ssh_user: "root"
ssh_port: 22
##################################################
# @TODO - these variables are not currently used #
##################################################
concurrent_jobs: 10
check_interval: 0
session_timeout: 1800
@@ -28,22 +51,6 @@ gitlab_runner:
# run_args: '["--config", "/etc/gitlab-runner/fargate.toml", "custom", "run"]'
# cleanup_exec: "/opt/gitlab-runner/fargate"
# cleanup_args: '["--config", "/etc/gitlab-runner/fargate.toml", "custom", "cleanup"]'
install_fargate: false
restart: true # set to false if you're applying settings to a server responsible for its own runners
username: "{{ ce_deploy.username }}"
docker_group: "docker"
runner_workingdir: "/home/{{ ce_deploy.username }}/build"
runner_config: "/etc/gitlab-runner/config.toml"
# see https://gitlab.com/gitlab-org/ci-cd/custom-executor-drivers/fargate/-/tree/master/docs
fargate:
cluster: "my-cluster" # ECS cluster name
profile: "example" # AWS boto profile name - can be substituted for "{{ _aws_profile }}" if set
region: "eu-west-1" # AWS region name - can be substituted for "{{ _aws_region }}" if set
subnet: "subnet-abcdef123456" # subnet ID
security_group: "my-security-group" # SG name
task_definition: "my-task:1" # task definition in format name:revision, if revision is not provided ECS will use latest
public_ip: "false" # if your containers need a public IP assigning
version: "1.4.0" # Fargate platform version
metadata_dir: "/opt/gitlab-runner/metadata"
ssh_user: "root"
ssh_port: 22
##################################################
# End @TODO #
##################################################
130 changes: 65 additions & 65 deletions roles/debian/gitlab_runner/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -45,61 +45,73 @@
# gitlab-runner register --url https://gitlab.com/ --registration-token TOKEN_HERE --name fargate-test-runner --run-untagged --executor custom -n
# This will automatically update /etc/gitlab-runner/config.toml

# Populates the _aws_security_group_list variable used in fargate.toml.j2
- name: Generate security group information.
ansible.builtin.include_role:
name: aws/aws_security_groups
apply:
delegate_to: localhost # this is how you delegate the include_role module
vars:
aws_security_groups:
profile: "{{ gitlab_runner.fargate.profile }}"
region: "{{ gitlab_runner.fargate.region }}"
group_names:
- "{{ gitlab_runner.fargate.security_group }}"
return_type: ids
when: gitlab_runner.install_fargate
# @TODO support different runner types - MPV custom (Fargate) and shell

- name: Create the Fargate driver directory if it does not exist.
ansible.builtin.file:
path: /opt/gitlab-runner
state: directory
mode: '0755'
owner: root
group: root
become: true
when: gitlab_runner.install_fargate

- name: Install the Fargate driver.
ansible.builtin.get_url:
url: https://gitlab-runner-custom-fargate-downloads.s3.amazonaws.com/latest/fargate-linux-amd64
dest: /opt/gitlab-runner/fargate
mode: 0755
become: true
# Populates the _aws_security_group_list variable used in fargate.toml.j2
- name: Install Fargate runner.
when: gitlab_runner.install_fargate

- name: Place the Fargate configuration file.
ansible.builtin.template:
src: fargate.toml.j2
dest: /etc/gitlab-runner/fargate.toml
owner: root
group: root
force: true
become: true
when:
- gitlab_runner.install_fargate
- gitlab_runner.fargate | length > 0

- name: Ensure the Fargate metadata directory exists.
ansible.builtin.file:
path: /opt/gitlab-runner/metadata
state: directory
mode: '0755'
owner: root
group: root
become: true
when:
- gitlab_runner.install_fargate
block:
- name: Generate security group information.
ansible.builtin.include_role:
name: aws/aws_security_groups
apply:
delegate_to: localhost # this is how you delegate the include_role module
vars:
aws_security_groups:
profile: "{{ gitlab_runner.fargate.profile }}"
region: "{{ gitlab_runner.fargate.region }}"
group_names:
- "{{ gitlab_runner.fargate.security_group }}"
return_type: ids

- name: Create the Fargate driver directory if it does not exist.
ansible.builtin.file:
path: /opt/gitlab-runner
state: directory
mode: '0755'
owner: root
group: root
become: true

- name: Install the Fargate driver.
ansible.builtin.get_url:
url: https://gitlab-runner-custom-fargate-downloads.s3.amazonaws.com/latest/fargate-linux-amd64
dest: /opt/gitlab-runner/fargate
mode: 0755
become: true

- name: Place the Fargate configuration file.
ansible.builtin.template:
src: fargate.toml.j2
dest: /etc/gitlab-runner/fargate.toml
owner: root
group: root
force: true
become: true
when:
- gitlab_runner.fargate | length > 0

- name: Ensure the Fargate metadata directory exists.
ansible.builtin.file:
path: /opt/gitlab-runner/metadata
state: directory
mode: '0755'
owner: root
group: root
become: true

- name: Install Docker.
when: gitlab_runner.install_fargate or gitlab_runner.use_docker
block:
- name: Run docker_ce role to install Docker.
ansible.builtin.include_role:
name: debian/docker_ce

- name: Add the GitLab Runner user (usually the controller) to the docker group.
ansible.builtin.user:
name: "{{ gitlab_runner.username }}"
groups: "{{ gitlab_runner.docker_group }}"
append: true

# @TODO inject the executor lines after any Fargate services in config.toml

@@ -145,18 +157,6 @@
become: true
when: gitlab_runner.restart

- name: Run docker_ce role when Fargate driver to be installed.
ansible.builtin.include_role:
name: debian/docker_ce
when: gitlab_runner.install_fargate

- name: Add the ce-provision user to the docker group.
ansible.builtin.user:
name: "{{ gitlab_runner.username }}"
groups: "{{ gitlab_runner.docker_group }}"
append: true
when: gitlab_runner.install_fargate

# See https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading
- name: Delete $HOME/.bash_logout for the runner user if it exists.
ansible.builtin.file:

Unchanged files with check annotations Beta

_iptables_string: ""
_iptabes_type: "INPUT"
- name: Set list of commands for tcp/udp in

Check warning on line 8 in roles/aws/aws_sg_iptables/tasks/main.yml

GitHub Actions / Lint the codebase

jinja[spacing]

Jinja2 spacing could be improved: {{ q( 'ansible.builtin.subelements', _glob, 'ports', { 'skip_missing': True }) }} -> {{ q('ansible.builtin.subelements', _glob, 'ports', {'skip_missing': True}) }}
include_tasks: tcp_udp_string.yml
loop: "{{ q( 'ansible.builtin.subelements', _glob, 'ports', { 'skip_missing': True }) }}"
ansible.builtin.set_fact:
_glob: "{{ _glob | ansible.utils.remove_keys(target=['priority']) }}"
- name: Set list of commands four tcp/udp out

Check warning on line 30 in roles/aws/aws_sg_iptables/tasks/main.yml

GitHub Actions / Lint the codebase

jinja[spacing]

Jinja2 spacing could be improved: {{ q( 'ansible.builtin.subelements', _glob, 'ports', { 'skip_missing': True }) }} -> {{ q('ansible.builtin.subelements', _glob, 'ports', {'skip_missing': True}) }}
include_tasks: tcp_udp_string.yml
loop: "{{ q( 'ansible.builtin.subelements', _glob, 'ports', { 'skip_missing': True }) }}"