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

Enhanced quick start pr devel 2.x #2288

Merged
merged 397 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
397 commits
Select commit Hold shift + click to select a range
897fc3d
Installer pr 2.x (#1732)
gregharvey May 29, 2024
939d1e3
Installing certbot in a python venv. (#1659)
gregharvey May 29, 2024
9428d42
Installer pr 2.x (#1735)
gregharvey May 29, 2024
548a648
Bug fixes 2.x pr 2.x (#1737)
gregharvey May 31, 2024
f70996e
Bug fixes 2.x pr 2.x (#1738)
gregharvey May 31, 2024
ef3b85c
Fixing-ACM-SAN-behaviour (#1739)
drazenCE May 31, 2024
a732b1c
Bug fixes 2.x pr 2.x (#1742)
gregharvey Jun 3, 2024
09d4d1c
Bug fixes 2.x pr 2.x (#1749)
gregharvey Jun 4, 2024
c16f342
Bug fixes 2.x pr 2.x (#1752)
gregharvey Jun 4, 2024
1c6bbc4
Bug fixes 2.x pr 2.x (#1754)
gregharvey Jun 5, 2024
b212b0f
Bug fixes 2.x pr 2.x (#1756)
gregharvey Jun 5, 2024
bb1d5cd
Redoing-changes-for-aws-acl-role (#1728)
matej5 Jun 7, 2024
d08fd78
Remvoing-scp-extra-args-temporary (#1761)
matej5 Jun 13, 2024
00b9892
Bug fixes 2.x pr 2.x (#1765)
gregharvey Jun 13, 2024
a1f3d9e
Bug fixes 2.x pr 2.x (#1767)
gregharvey Jun 13, 2024
49940d9
Bug fixes 2.x pr 2.x (#1769)
gregharvey Jun 13, 2024
b556265
Bug fixes 2.x pr 2.x (#1771)
gregharvey Jun 13, 2024
c8f437b
Managing-mime-types-nginx (#1773)
drazenCE Jun 19, 2024
78d9859
Whitelisting ce vpn ip wazuh pr 2.x (#1775)
drazenCE Jun 20, 2024
f52aeaf
Updating-wazuh-vars (#1777)
drazenCE Jun 25, 2024
c1601eb
add community.postgresql collection and remove varnish master release…
nfawbert Jun 25, 2024
1dd7153
Updating wazuh vars pr 2.x (#1781)
drazenCE Jun 25, 2024
1644e8b
Updating wazuh vars pr 2.x (#1783)
drazenCE Jun 25, 2024
29c8f53
Updating wazuh vars pr 2.x (#1785)
drazenCE Jun 25, 2024
2645a53
Updating wazuh vars pr 2.x (#1787)
drazenCE Jun 25, 2024
da8e909
r68065 mattermost role first commit (#1789)
nfawbert Jun 26, 2024
1d52a29
r68065 install python psycopg2 (#1791)
nfawbert Jun 27, 2024
f935659
r68065 use psycopg binary package as compiling creates depsolve issue…
nfawbert Jun 27, 2024
996f67c
permissions for postgres setup (#1795)
nfawbert Jun 27, 2024
bcb8383
r68065 add mattermost group before user (#1797)
nfawbert Jun 27, 2024
c7e68a5
Updating-duplicity (#1804)
drazenCE Jul 1, 2024
69e741c
enable mattermost systemd unit (#1810)
nfawbert Jul 2, 2024
8694d1f
nginx include for mattermost (#1812)
nfawbert Jul 2, 2024
e6637ca
ssl on handled by nginx role (#1814)
nfawbert Jul 2, 2024
bcde5ae
fix mattermost nginx include (#1822)
nfawbert Jul 3, 2024
be379a5
remove unsupported nginx option (#1824)
nfawbert Jul 3, 2024
a58040d
Restore testing update pr 2.x (#1832)
matej5 Jul 8, 2024
21ffa8d
Resolving conflicts pr 2.x (#1834)
matej5 Jul 9, 2024
f1e3478
initial commit - mattermost local backups (#1838)
nfawbert Jul 9, 2024
303e501
r69995-Updating-vhost-for-LE-validation (#1843)
matej5 Jul 11, 2024
a71e3b2
Changing priority flexibility pr 2.x (#1841)
matej5 Jul 11, 2024
2037c74
Aws acl role changes for ip set pr 2.x (#1848)
matej5 Jul 12, 2024
6d519bd
add_php_repo_before_apt_extra_packages_task_from_common_base (#1850)
tymofiisobchenko Jul 12, 2024
419387c
fix_opensearch_vars (#1852)
tymofiisobchenko Jul 15, 2024
184387a
wait_timeout_for_opensearch_domain_creation (#1854)
tymofiisobchenko Jul 15, 2024
6a31637
Updating-aws-acl-task (#1856)
matej5 Jul 17, 2024
8c3f3cf
Bug fixes 2.x pr 2.x (#1859)
gregharvey Jul 18, 2024
bcee996
Bug fixes 2.x pr 2.x (#1860)
gregharvey Jul 18, 2024
cdb037f
Small-changes-on-aws-acl-and-RDS-validation (#1863)
matej5 Jul 23, 2024
1678f2a
Updating-user-ansible-vars (#1864)
drazenCE Jul 30, 2024
1ffa2ad
Updating user ansible vars pr 2.x (#1867)
drazenCE Jul 30, 2024
acb8ae9
add_vars_to_user_deploy_user_provision (#1869)
tymofiisobchenko Jul 31, 2024
0fea705
Disabling-general-log-mariadb (#1871)
drazenCE Jul 31, 2024
8facd99
Updating-aws_acl-role (#1873)
matej5 Aug 1, 2024
37fa346
r70260-rkhunter-whitelist (#1877)
drazenCE Aug 7, 2024
4605fff
fix(nginx): Remove default nginx dummy vhost that could clash with Va…
klausi Aug 14, 2024
c7bc57c
Wazuh-var-update (#1903)
drazenCE Aug 27, 2024
166a0e8
Wazuh-agent-vars-more-readable (#1905)
drazenCE Aug 27, 2024
1f7c08c
Filebeat-restart-task-wazuh (#1907)
drazenCE Aug 28, 2024
5d3153a
Filebeat restart task wazuh pr 2.x (#1909)
drazenCE Aug 28, 2024
e5306ea
Adding-gawk-to-extra-packages (#1910)
drazenCE Sep 2, 2024
229551c
Updating-filebeat-restart-task (#1913)
drazenCE Sep 3, 2024
38bc576
Adding motd to exit role pr 2.x (#1915)
matej5 Sep 3, 2024
6491f83
Fixing-motd-task (#1917)
drazenCE Sep 4, 2024
1ce0265
Motd-switch-egrep-with-awk (#1919)
drazenCE Sep 4, 2024
5c240df
Motd-task-update (#1922)
drazenCE Sep 4, 2024
d0fec1f
Fixing motd task when running on localhost pr 2.x (#1924)
matej5 Sep 5, 2024
ec1ff32
Apt bug workaround pr 2.x (#1935)
tymofiisobchenko Sep 9, 2024
e68f1e3
Pushing-aws-backup-validation-role (#1944)
matej5 Sep 9, 2024
91306be
fix(redis): Convert maxmemory setting to int before comparing (#1897)
klausi Sep 10, 2024
e476b63
Reverting-nginx-username (#1945)
drazenCE Sep 11, 2024
094cf0f
Reverting nginx username pr 2.x (#1947)
drazenCE Sep 11, 2024
829ad7c
Updating-nginx-vars (#1950)
drazenCE Sep 11, 2024
894f233
Bug fixes 2.x pr 2.x (#1952)
gregharvey Sep 11, 2024
0fda124
r70597 new system role for ipv6 disablement (#1954)
nfawbert Sep 13, 2024
89f779e
Fixing-json-file-for-restore-testing (#1956)
matej5 Sep 13, 2024
743e477
Fixing json file for restore testing pr 2.x (#1957)
matej5 Sep 13, 2024
01fa3e8
updating asg role to support custom rule on http and https (#1959)
filiprupic Sep 16, 2024
42968b3
Bug fixes 2.x pr 2.x (#1962)
gregharvey Sep 16, 2024
48f70db
Bug fixes 2.x pr 2.x (#1966)
gregharvey Sep 16, 2024
2b40728
r70596 create swap directory (#1968)
nfawbert Sep 17, 2024
054630c
70325 adding asg redirect pr 2.x (#1963)
filiprupic Sep 17, 2024
44bd4bb
swapfile path and clamav exclusion (#1970)
nfawbert Sep 17, 2024
07483c4
Galaxy role pr 2.x (#1974)
gregharvey Sep 19, 2024
63a3168
Bug fixes 2.x pr 2.x (#1975)
gregharvey Sep 19, 2024
d365903
Bug fixes 2.x pr 2.x (#1978)
gregharvey Sep 19, 2024
e3e92fc
Bug fixes 2.x pr 2.x (#1980)
gregharvey Sep 19, 2024
d54a77f
Updating defaults pr 2.x (#1982)
matej5 Sep 27, 2024
81ba000
Updating defaults pr 2.x (#1984)
matej5 Sep 27, 2024
263178a
Removing-gawk-apt (#1985)
drazenCE Sep 30, 2024
68af278
Adding-gawk-removing-gawk-csh (#1987)
drazenCE Oct 1, 2024
7733709
Adding-when-statement-for-assigning-instance (#1990)
matej5 Oct 2, 2024
c7cc767
Matching-2.x-and-devel-branches (#1999)
matej5 Oct 2, 2024
1e1c155
Adding-aws-ses-role (#2003)
matej5 Oct 2, 2024
b9f7099
Resolving-conflicts (#2015)
matej5 Oct 9, 2024
6de09d0
Resolving-conflicts (#2018)
matej5 Oct 10, 2024
11bbb4f
Updating nginx ssl le roles pr 2.x (#2021)
drazenCE Oct 10, 2024
9cc13a0
r70260 Option to ignore false-positive shared memory segment warnings…
nfawbert Oct 14, 2024
3624d58
Adding-wazuh-ossec-from-enigma00a (#2027)
drazenCE Oct 17, 2024
4df8e0b
Updating-gitlab-runner-env (#2031)
drazenCE Oct 18, 2024
f4a2eb1
r70987-decom-vpn-guest (#2034)
nfawbert Oct 21, 2024
4091736
r70797 nodhcp module in system role for hetzner cloud systems (#2036)
nfawbert Oct 21, 2024
62e947d
fix pipefail with bash (#2038)
nfawbert Oct 21, 2024
ecf8d48
fix var in templ (#2040)
nfawbert Oct 21, 2024
13bf15a
R70928 adding webroot option for le ssl task and fixing looping over …
matej5 Oct 28, 2024
6731f91
Updating-local-ossec-rules (#2045)
drazenCE Oct 29, 2024
c4aeab0
Updating-wazuh-vars (#2048)
drazenCE Oct 30, 2024
c35b2a6
r70260-rkhunter-tested-good-tweaks (#2051)
nfawbert Nov 5, 2024
ad461b8
Fixing-LE-renew-timer (#2052)
matej5 Nov 6, 2024
9b81481
R70260 rkhunter tweak portpathwhitelist pr 2.x (#2055)
nfawbert Nov 7, 2024
b39f21a
Updating-system-role-condition (#2056)
drazenCE Nov 7, 2024
28128ea
Updating system role condition pr 2.x (#2059)
drazenCE Nov 7, 2024
237cec3
r71121-tweak-nohetznerdhcp-condition (#2061)
nfawbert Nov 8, 2024
92df478
Changing-aws-acl-when-statement (#2063)
matej5 Nov 11, 2024
6fe3800
R71127 r71052 check pr 2.x (#2073)
tymofiisobchenko Nov 12, 2024
05baa41
Newer aws collection test pr 2.x (#2077)
tymofiisobchenko Nov 13, 2024
a1bfc21
r71171-efs-client-upgrade (#2079)
tymofiisobchenko Nov 19, 2024
57ce7c3
Turning-off-ami-cleanup-task (#2083)
matej5 Nov 21, 2024
f757a67
Changing subnet for rds pr 2.x (#2087)
matej5 Nov 27, 2024
08bc58b
fix(debian/duplicity): Fix missing compilation dependencies (#2029)
klausi Nov 27, 2024
7de6408
fix(php-fpm): Set a good process children default for bigger servers …
klausi Nov 27, 2024
9666c52
Fixing-RDS-backup-validation (#2089)
matej5 Nov 28, 2024
52e9020
Updating-postfix-default-transport-maps (#2092)
drazenCE Dec 3, 2024
b66c484
Updated lambda backup validation reporting pr 2.x (#2099)
matej5 Dec 4, 2024
3ea00fa
Bug fixes 2.x pr 2.x (#2096)
gregharvey Dec 4, 2024
c63908c
Avoiding-backup-restoration-for-dev-env (#2108)
matej5 Dec 5, 2024
019107f
Updating-nodejs-to-nodistro (#2094)
drazenCE Dec 5, 2024
2551c45
r71344-Updating-aws-acl-role (#2111)
matej5 Dec 5, 2024
1042aa1
r71344-Updating-aws-acl-role (#2112)
matej5 Dec 5, 2024
1f27e9e
Fixing-non-utf8-item (#2116)
matej5 Dec 5, 2024
faf190d
Fixing non utf8 item pr 2.x (#2117)
matej5 Dec 5, 2024
997a693
Fixing-utf8 (#2129)
drazenCE Dec 9, 2024
d455a4f
Fixing utf8-2.x (#2131)
drazenCE Dec 9, 2024
e780882
Changing-lambda-creation-from-tip-file-to-s3 (#2122)
matej5 Dec 9, 2024
461792d
Updating email notification title pr 2.x (#2140)
matej5 Dec 9, 2024
f969f1b
Adding-defaults-to-max-children (#2141)
drazenCE Dec 11, 2024
83157d1
Adding defaults to max children pr 2.x (#2144)
drazenCE Dec 11, 2024
2740a8a
Updating-php-defaults (#2145)
drazenCE Dec 12, 2024
e52a546
Updating php defaults pr 2.x (#2147)
drazenCE Dec 13, 2024
e8b9b63
efs_version_fix_for_old_debian_workaround (#2151)
tymofiisobchenko Dec 17, 2024
653c23e
fix(duplicity): Fix file name of include/exclude list (#2152)
klausi Dec 17, 2024
af394a8
Bug fixes 2.x pr 2.x (#2120)
gregharvey Dec 18, 2024
ca98e15
Update .wikis2pages.yml
gregharvey Dec 18, 2024
7ee7f1c
Nightly builds (#2153)
gregharvey Dec 21, 2024
237a59a
Updating-wazuh-template (#2154)
drazenCE Dec 23, 2024
f41c496
Updating le template (#2156)
drazenCE Dec 31, 2024
123bced
Reworking-nodejs-for-older-versions (#2157)
drazenCE Jan 2, 2025
984c502
Reworking nodejs for older versions pr 2.x (#2159)
drazenCE Jan 3, 2025
d7f2a1b
Reworking nodejs for older versions pr 2.x (#2160)
drazenCE Jan 3, 2025
9c15d0e
Reworking nodejs for older versions pr 2.x (#2161)
drazenCE Jan 3, 2025
3cab7e3
Publish docs pr 2.x (#2164)
gregharvey Jan 6, 2025
7f05cf2
Merge branch 'devel-2.x' into 2.x
gregharvey Jan 6, 2025
2a8f937
Publish docs pr 2.x (#2166)
gregharvey Jan 7, 2025
1130f7a
Publish docs pr 2.x (#2168)
gregharvey Jan 7, 2025
ff7c0ac
Publish docs pr 2.x (#2171)
gregharvey Jan 7, 2025
7415e4c
Publish docs pr 2.x (#2174)
gregharvey Jan 8, 2025
bfc862b
Publish docs pr 2.x (#2177)
gregharvey Jan 8, 2025
9a12fcc
Publish docs pr 2.x (#2179)
gregharvey Jan 8, 2025
2a0d997
Publish docs pr 2.x (#2181)
gregharvey Jan 8, 2025
c55ba2c
Publish docs pr 2.x (#2184)
gregharvey Jan 8, 2025
63583d3
Publish docs pr 2.x (#2186)
gregharvey Jan 8, 2025
e3e122b
GitHub Actions - updating markdown docs - (#2187)
github-actions[bot] Jan 8, 2025
efb357c
Publish docs pr 2.x (#2189)
gregharvey Jan 8, 2025
66c6ed9
Publish docs pr 2.x (#2193)
gregharvey Jan 8, 2025
67ea50f
r71115-default-ldap-ca-cert (#2197)
nfawbert Jan 8, 2025
9893d68
Documentation update - 2.x (#2198)
github-actions[bot] Jan 8, 2025
8a4d8c5
Publish docs pr 2.x (#2203)
gregharvey Jan 8, 2025
4fada37
Publish docs pr 2.x (#2205)
gregharvey Jan 8, 2025
8ddb254
Documentation update - 2.x (#2200)
github-actions[bot] Jan 8, 2025
536254d
Added more generic firewall rules that might be useful.
gregharvey Jan 9, 2025
d0cf00e
Added an update step to the installer.
gregharvey Jan 9, 2025
edb18c2
Providing some default playbooks people can use in ce-provision.
gregharvey Jan 9, 2025
a2e0283
Slight docs tweak for showtime!
gregharvey Jan 9, 2025
3e98576
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 9, 2025
72137a4
Enhanced quick start pr 2.x (#2207)
gregharvey Jan 9, 2025
c4516b8
Modernising hostname handling to use systemd.
gregharvey Jan 9, 2025
615870d
Switching default key type to ED25519 because it is supported by both…
gregharvey Jan 9, 2025
ae50f72
Switching to ED25519 SSH keys and adding hostname and hosts handling …
gregharvey Jan 9, 2025
5f9d5dc
Merge branch 'devel-2.x' of github.com:codeenigma/ce-provision into e…
gregharvey Jan 9, 2025
095385e
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 9, 2025
20c7c9a
Merge branch '2.x' into enhanced_quick_start
gregharvey Jan 9, 2025
9ec571e
Adding iproute2 package so hosts role works.
gregharvey Jan 9, 2025
d1aab88
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 9, 2025
d9268ed
Also need an apt-get update in CI.
gregharvey Jan 9, 2025
fbde85c
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 9, 2025
64969f3
Change of plan, stop hosts running in containers.
gregharvey Jan 9, 2025
9bb1ac7
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 9, 2025
d497ebd
Small inline docs change.
gregharvey Jan 9, 2025
cd4cc9b
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 9, 2025
e4113b1
Providing sane defaults for VPC security groups.
gregharvey Jan 10, 2025
26e6139
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 10, 2025
537b60e
Documentation update - 2.x (#2208)
github-actions[bot] Jan 13, 2025
e12d9e4
Making key name dynamic in the installer.
gregharvey Jan 13, 2025
8348c92
Merge branch 'devel-2.x' of github.com:codeenigma/ce-provision into e…
gregharvey Jan 13, 2025
b5a1574
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 13, 2025
89caa26
Merge branch '2.x' into enhanced_quick_start
gregharvey Jan 13, 2025
25dc545
Error in variable namespace.
gregharvey Jan 13, 2025
75f63ff
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 13, 2025
bf90d80
Enhanced quick start pr 2.x (#2211)
gregharvey Jan 13, 2025
5de8638
Publish docs pr 2.x (#2216)
gregharvey Jan 13, 2025
fb03534
Publish docs pr 2.x (#2218)
gregharvey Jan 13, 2025
0986cb2
Documentation update - 2.x (#2213)
github-actions[bot] Jan 13, 2025
8de3b45
Publish docs pr 2.x (#2220)
gregharvey Jan 13, 2025
e879264
Bug fixes 2.x pr 2.x (#2225)
gregharvey Jan 14, 2025
2ad05bb
Bug fixes 2.x pr 2.x (#2229)
gregharvey Jan 14, 2025
858de79
Documentation update - 2.x (#2226)
github-actions[bot] Jan 14, 2025
a81e2d1
Bug fixes 2.x pr 2.x (#2231)
gregharvey Jan 15, 2025
5096fa9
Bug fixes 2.x pr 2.x (#2233)
gregharvey Jan 15, 2025
24b4a9b
Bug fixes 2.x pr 2.x (#2235)
gregharvey Jan 15, 2025
13fd86a
Bug fixes 2.x pr 2.x (#2240)
gregharvey Jan 15, 2025
fdf1e22
Updating-descriptions (#2237)
matej5 Jan 15, 2025
02d550c
Bug fixes 2.x pr 2.x (#2242)
gregharvey Jan 15, 2025
9ef5312
Bug fixes 2.x pr 2.x (#2244)
gregharvey Jan 15, 2025
344d9a3
Documentation update - 2.x (#2245)
github-actions[bot] Jan 15, 2025
c814de9
Bug fixes 2.x pr 2.x (#2252)
gregharvey Jan 16, 2025
2288a06
Bug fixes 2.x pr 2.x (#2256)
gregharvey Jan 16, 2025
606b8f7
Bug fixes 2.x pr 2.x (#2259)
gregharvey Jan 17, 2025
28243d1
Updating-nodejs (#2262)
drazenCE Jan 22, 2025
de5313a
Fixing-unattended-upgrades (#2268)
drazenCE Jan 23, 2025
b5eca01
Bug fixes 2.x pr 2.x (#2272)
gregharvey Jan 23, 2025
ddc9dac
Allowing more flexible definition of sudo privileges via user_ansible…
gregharvey Jan 24, 2025
e0888ff
Bug fixes 2.x pr 2.x (#2280)
gregharvey Jan 29, 2025
c639402
Bug fixes 2.x pr 2.x (#2281)
gregharvey Jan 30, 2025
338115c
Merging 2.x
gregharvey Jan 30, 2025
0e3bd42
Adding GPG and SOPS to installer.
gregharvey Jan 30, 2025
3175319
Merge branch 'devel-2.x' of github.com:codeenigma/ce-provision into e…
gregharvey Jan 30, 2025
05890c7
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 30, 2025
84fc781
Enhanced quick start pr 2.x (#2283)
gregharvey Jan 30, 2025
8d3975a
ldap ca certificate refactor (#2247)
filiprupic Jan 30, 2025
207dfcb
Merge branch 'devel-2.x' into 2.x
gregharvey Jan 30, 2025
73099eb
The GPG role should make sure GPG is installed!
gregharvey Jan 30, 2025
3ae48bb
Enforcing correct working directory when installing Galaxy roles and …
gregharvey Jan 30, 2025
fa1d753
Merge branch 'devel-2.x' of github.com:codeenigma/ce-provision into e…
gregharvey Jan 30, 2025
0e5032a
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 30, 2025
d146195
Merge branch '2.x' into enhanced_quick_start
gregharvey Jan 30, 2025
93af9d6
Indentation fix.
gregharvey Jan 30, 2025
4b2c61d
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Jan 30, 2025
92fb7c5
Enhanced quick start pr 2.x (#2286)
gregharvey Jan 30, 2025
6ebe965
Ensuring controller user is used when delegating back to localhost.
gregharvey Feb 5, 2025
d0e2506
Merge branch 'devel-2.x' of github.com:codeenigma/ce-provision into e…
gregharvey Feb 5, 2025
2a555e6
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Feb 5, 2025
0f0eca7
Merge branch '2.x' into enhanced_quick_start
gregharvey Feb 5, 2025
508437f
Adding missing become parameters.
gregharvey Feb 5, 2025
9502014
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Feb 5, 2025
54fea9d
Adding the acl Debian package to the installer.
gregharvey Feb 5, 2025
9435802
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Feb 5, 2025
bbc5315
Removing unnecessary become_user parameters where it breaks CI.
gregharvey Feb 5, 2025
ff51c9e
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Feb 5, 2025
43973e8
Providing a README file for the launcher playbook.
gregharvey Feb 5, 2025
fda9927
Merge branch 'enhanced_quick_start' into enhanced_quick_start-PR-deve…
gregharvey Feb 5, 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
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fi
git ca-certificates git-lfs \
openssh-client nfs-common stunnel4 \
python3-venv python3-debian \
zip unzip gzip tar dnsutils net-tools
acl zip unzip gzip tar dnsutils net-tools
/usr/bin/echo "-------------------------------------------------"

# Install Ansible in a Python virtual environment.
Expand Down
2 changes: 1 addition & 1 deletion plays/aws_ec2_standalone/mysql_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
profile: "{{ _aws_profile }}"
db_instance_identifier: "{{ _aws_resource_name }}"
become: true
become_user: "{{ user_provision.username }}"
become_user: "{{ _ce_provision_username }}"
delegate_to: localhost # needs to run on controller
register: _database_info
# Install MySQL client
Expand Down
24 changes: 24 additions & 0 deletions plays/launcher/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Base playbook to configure a new target server
This playbook configures a new target server, and should just work if you have followed the installation and configuration instructions [in our GitHub wiki](https://github.com/codeenigma/ce-provision/wiki/Installation). It will add the server to `hosts` in your config repository and install Ansible dependencies and the controller user on the target host. Once this is done you can orchestrate its future configuration with ce-provision.

## Prerequisites
* You have followed the official installation instructions for your controller
* Your new target server has the controller's SSH public key assigned to a Linux user
* Your new target server has port 22 open to the controller
* Your Ansible `hosts` inventory file has `ansible_connection=local` set for your controller at `localhost`

## Usage
On your controller server:

```shell
sudo su -l controller
cd /home/controller/ce-provision && \
./scripts/provision.sh \
--workspace /home/controller/ce-provision \
--repo none --branch none \
--playbook plays/launcher/configure.yml \
--ansible-extra-vars "_provision_host=1.2.3.4 _target_username=admin" \
--force
```

Change the value of `1.2.3.4` on the last line to match your IP address or hostname. Change the value of `admin` to whatever the Linux username is installed by default with your SSH public key attached. This may vary, see your provider's documentation for details.
32 changes: 21 additions & 11 deletions plays/launcher/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,44 @@
# ./scripts/provision.sh --workspace /home/controller/ce-provision \
# --repo none --branch none \
# --playbook /home/controller/ce-provision/plays/launcher/configure.yml \
# --ansible-extra-vars "_provision_host=X.X.X.X"
# --ansible-extra-vars "_provision_host=X.X.X.X _target_username=admin" \
# --force
#
# Replace X.X.X.X with your hostname or IP address.
# Replace admin with the username that has your SSH public key, see provider docs for details.
- hosts: localhost
vars:
_ce_provision_username: controller
_add_host: true # set to false if you do not want to add the new server to hosts.yml
_add_host: true # set to false if you do not want to add the new server to hosts file
_ce_provision_config_branch: 2.x # change this if you didn't use our example config and have a different main branch name
tasks:
- name: Add the server to Ansible hosts in memory.
ansible.builtin.add_host:
hostname: "{{ _provision_host }}"

- name: Add the server to hosts.yml.
when: _add_host
- name: Check if the hosts INI file exists.
ansible.builtin.stat:
path: "/home/{{ _ce_provision_username }}/ce-provision/config/hosts/hosts"
register: _hosts_ini_file

- name: Add the server to hosts if INI file exists.
when:
- _add_host
- _hosts_ini_file.stat.exists
block:
- name: Edit hosts.yml file.
- name: Edit hosts file.
ansible.builtin.lineinfile:
path: "/home/{{ _ce_provision_username }}/ce-provision/config/hosts/hosts.yml"
line: "{{ _provision_host }}:"
create: true
path: "/home/{{ _ce_provision_username }}/ce-provision/config/hosts/hosts"
line: "{{ _provision_host }}"
insertafter: "### ce-provision launcher hosts - do not remove"
state: present

- name: Add hosts.yml changes.
- name: Add hosts changes.
ansible.builtin.command: git add .
args:
chdir: "/home/{{ _ce_provision_username }}/ce-provision/config"

- name: Commit hosts.yml changes.
- name: Commit hosts changes.
ansible.builtin.shell: "git diff --staged --quiet || git commit -m 'Ansible autogenerated - host {{ _provision_host }} added.'"
args:
chdir: "/home/{{ _ce_provision_username }}/ce-provision/config"
Expand All @@ -45,7 +55,7 @@

- hosts: "{{ _provision_host }}"
vars:
ansible_user: admin
ansible_user: "{{ _target_username }}"
_ce_provision_build_id: 0
become: true
tasks:
Expand Down
8 changes: 5 additions & 3 deletions roles/_exit/tasks/allowed_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
ansible.builtin.command: "git status -s"
args:
chdir: "{{ _ce_provision_build_tmp_dir }}/extra"
become: true
become_user: "{{ _ce_provision_username }}"
delegate_to: localhost
register: _ce_provision_extra_vars_git_changed

Expand All @@ -30,7 +32,7 @@
args:
chdir: "{{ _ce_provision_build_tmp_dir }}/extra"
become: true
become_user: "{{ ce_provision.username }}"
become_user: "{{ _ce_provision_username }}"
delegate_to: localhost
when:
- ce_provision_extra_vars_computed is defined
Expand All @@ -41,7 +43,7 @@
args:
chdir: "{{ _ce_provision_build_tmp_dir }}/extra"
become: true
become_user: "{{ ce_provision.username }}"
become_user: "{{ _ce_provision_username }}"
delegate_to: localhost
when:
- ce_provision_extra_vars_computed is defined
Expand All @@ -52,7 +54,7 @@
args:
chdir: "{{ _ce_provision_build_tmp_dir }}/extra"
become: true
become_user: "{{ ce_provision.username }}"
become_user: "{{ _ce_provision_username }}"
delegate_to: localhost
when:
- ce_provision_extra_vars_computed is defined
Expand Down
6 changes: 3 additions & 3 deletions roles/_init/tasks/allowed_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
version: "{{ _init.ce_provision_extra_repository_branch }}"
delegate_to: localhost
become: true
become_user: "{{ ce_provision.username }}"
become_user: "{{ _ce_provision_username }}"

- name: Check if file exists.
ansible.builtin.stat:
path: "{{ _ce_provision_build_tmp_dir }}/extra/{{ _init.ce_provision_extra_repository_vars_file }}"
delegate_to: localhost
become: true
become_user: "{{ ce_provision.username }}"
become_user: "{{ _ce_provision_username }}"
register: _extra_repository_vars_file

- name: Include custom variables.
Expand All @@ -21,7 +21,7 @@
name: _ce_provision_extra_vars
delegate_to: localhost
become: true
become_user: "{{ ce_provision.username }}"
become_user: "{{ _ce_provision_username }}"
when:
- _extra_repository_vars_file.stat.exists

Expand Down
4 changes: 2 additions & 2 deletions roles/debian/aws_efs_client/tasks/fstab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
region: "{{ aws_efs_client.region }}"
name: "{{ mount.src }}"
become: true
become_user: "{{ user_provision.username }}"
delegate_to: "localhost"
become_user: "{{ _ce_provision_username }}"
delegate_to: localhost
register: aws_efs_client_efs_volume

- name: Make sure mount point exists.
Expand Down
70 changes: 34 additions & 36 deletions roles/debian/gitlab/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
---
- name: Add a DNS record for GitLab
amazon.aws.route53:
state: "{{ gitlab.gitlab_route_53.state }}"
profile: "{{ gitlab.gitlab_route_53.aws_profile }}"
zone: "{{ gitlab.gitlab_route_53.zone }}"
record: "{{ gitlab.server_name }}"
type: "{{ gitlab.gitlab_route_53.type }}"
value: "{{ gitlab.gitlab_route_53.value }}"
overwrite: true
delegate_to: localhost
become: false
- name: Add DNS records.
when:
- gitlab.gitlab_route_53.zone is defined
- gitlab.gitlab_route_53.zone | length > 0

- name: Add a DNS record for Mattermost
amazon.aws.route53:
state: "{{ gitlab.mattermost_route_53.state }}"
profile: "{{ gitlab.mattermost_route_53.aws_profile }}"
zone: "{{ gitlab.mattermost_route_53.zone }}"
record: "{{ gitlab.mattermost_url }}"
type: CNAME
value: "{{ gitlab.server_name }}"
overwrite: true
delegate_to: localhost
become: false
when:
- gitlab.mattermost_route_53.zone is defined
- gitlab.mattermost_route_53.zone | length > 0
block:
- name: Add a DNS record for GitLab.
amazon.aws.route53:
state: "{{ gitlab.gitlab_route_53.state }}"
profile: "{{ gitlab.gitlab_route_53.aws_profile }}"
zone: "{{ gitlab.gitlab_route_53.zone }}"
record: "{{ gitlab.server_name }}"
type: "{{ gitlab.gitlab_route_53.type }}"
value: "{{ gitlab.gitlab_route_53.value }}"
overwrite: true
delegate_to: localhost
become: false

- name: Add a DNS record for Mattermost.
amazon.aws.route53:
state: "{{ gitlab.mattermost_route_53.state }}"
profile: "{{ gitlab.mattermost_route_53.aws_profile }}"
zone: "{{ gitlab.mattermost_route_53.zone }}"
record: "{{ gitlab.mattermost_url }}"
type: CNAME
value: "{{ gitlab.server_name }}"
overwrite: true
delegate_to: localhost
become: false

- name: Add GitLab repository and key.
ansible.builtin.include_role:
Expand All @@ -50,19 +49,18 @@
enabled: true
key_refresh_timer_OnCalendar: "Mon *-*-* 00:20:00"

- name: Add GitLab repository to unattended-upgrades origins list.
ansible.builtin.set_fact:
_apt_unattended_upgrades_default_origins: "{{ _apt_unattended_upgrades_default_origins + [gitlab.apt_origin] }}"
when:
- apt_unattended_upgrades.enable is defined
- apt_unattended_upgrades.enable

- name: Install the unattended-upgrades config.
ansible.builtin.include_role:
name: debian/apt_unattended_upgrades
- name: Set up unattended-upgrades.
when:
- apt_unattended_upgrades.enable is defined
- apt_unattended_upgrades.enable
block:
- name: Add GitLab repository to unattended-upgrades origins list.
ansible.builtin.set_fact:
_apt_unattended_upgrades_default_origins: "{{ _apt_unattended_upgrades_default_origins + [gitlab.apt_origin] }}"

- name: Install the unattended-upgrades config.
ansible.builtin.include_role:
name: debian/apt_unattended_upgrades

- name: Ensure Gitlab is installed.
ansible.builtin.apt:
Expand Down
17 changes: 8 additions & 9 deletions roles/debian/gitlab_runner/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@
enabled: true
key_refresh_timer_OnCalendar: "Mon *-*-* 00:30:00"

- name: Add GitLab Runner repository to unattended-upgrades origins list.
ansible.builtin.set_fact:
_apt_unattended_upgrades_default_origins: "{{ _apt_unattended_upgrades_default_origins + [gitlab_runner.apt_origin] }}"
- name: Set up unattended-upgrades.
when:
- apt_unattended_upgrades.enable is defined
- apt_unattended_upgrades.enable
block:
- name: Add GitLab Runner repository to unattended-upgrades origins list.
ansible.builtin.set_fact:
_apt_unattended_upgrades_default_origins: "{{ _apt_unattended_upgrades_default_origins + [gitlab_runner.apt_origin] }}"

- name: Install the unattended-upgrades config.
ansible.builtin.include_role:
name: debian/apt_unattended_upgrades
when:
- apt_unattended_upgrades.enable is defined
- apt_unattended_upgrades.enable
- name: Install the unattended-upgrades config.
ansible.builtin.include_role:
name: debian/apt_unattended_upgrades

- name: Ensure Gitlab Runner is installed.
ansible.builtin.apt:
Expand Down
2 changes: 1 addition & 1 deletion roles/debian/gpg_key/tasks/gpg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
- gpg_user.publish
- not user_ansible_gpg_key_exists.stdout

- name: Publish GPG key to openpgp.org.
- name: Publish GPG key to key servers.
ansible.builtin.command:
cmd: "gpg --keyserver {{ server }} --send-keys {{ user_ansible_gpg_key.stdout_lines[1] }}"
become: true
Expand Down
2 changes: 2 additions & 0 deletions roles/debian/ldap_server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
ansible.builtin.stat:
path: "{{ ldap_server.config.path }}"
register: _ldap_server_ldifs
become_user: "{{ _ce_provision_username }}"
become: true
delegate_to: localhost

- name: Copy LDAP schemas from config repo.
Expand Down
2 changes: 2 additions & 0 deletions roles/debian/wazuh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- name: Generate certificates.
ansible.builtin.import_role:
name: "contrib/{{ wazuh.path }}/roles/wazuh/wazuh-indexer"
become_user: "{{ _ce_provision_username }}"
become: true
delegate_to: localhost
vars:
indexer_node_master: "{{ wazuh.indexer.indexer_node_master }}"
Expand Down
Loading