Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
364 commits
Select commit Hold shift + click to select a range
7db4aee
r69219-Updating-Scheduler-json-target (#1603)
matej5 Apr 15, 2024
64905aa
R68069 alb healthchecks and nginx pr 2.x (#1609)
tymofiisobchenko Apr 23, 2024
f3d8ab7
R69332 le cron mail alerts pr 2.x (#1605)
drazenCE Apr 23, 2024
7a9147f
Aws acl defaults pr 2.x (#1614)
gregharvey Apr 25, 2024
40049ca
Small-changes-to-roles (#1617)
matej5 Apr 29, 2024
fe089cd
Updating-aws-acl-role (#1626)
matej5 May 3, 2024
5c6c300
Apt repo role pr 2.x (#1620)
gregharvey May 6, 2024
d6924b2
Apt repo role pr 2.x (#1631)
gregharvey May 7, 2024
9a92247
Merge branch 'devel-2.x' into 2.x
gregharvey May 7, 2024
ffdb991
required_paramater_for_gp3_storage_type_tidying_up_and_refactoring (#…
tymofiisobchenko May 8, 2024
9e856a0
fixing_rds_vars (#1652)
tymofiisobchenko May 8, 2024
6135c88
Fixing-aws-acl-condition (#1654)
matej5 May 8, 2024
2044147
Apt repo role pr 2.x (#1661)
gregharvey May 13, 2024
f919e25
Bug fixes 2.x pr 2.x (#1662)
gregharvey May 13, 2024
e8d74e5
fix(scripts): Fix git checkout to fetch any new branches (#1655)
klausi May 13, 2024
25baa04
Apt repo role pr 2.x (#1666)
gregharvey May 14, 2024
f08fe67
Bug fixes 2.x pr 2.x (#1667)
gregharvey May 14, 2024
f42142f
Bug fixes 2.x pr 2.x (#1670)
gregharvey May 14, 2024
f93ae3a
Updating-waf-acl-role (#1672)
matej5 May 15, 2024
f2f2c96
Setting up proxy vhost pr 2.x (#1674)
drazenCE May 15, 2024
bbad84f
Fixing-typo (#1676)
drazenCE May 15, 2024
2f749bf
New-version-of-aws-acl-role (#1683)
matej5 May 20, 2024
9134709
Updating-nginx-template (#1688)
drazenCE May 21, 2024
09f1332
Updating-aws_backup-to-register-iam-arn-2 (#1696)
matej5 May 22, 2024
e4f16ee
Updating-nginx-htpasswd-task-2 (#1698)
matej5 May 22, 2024
c3913a9
Bug fixes 2.x pr 2.x (#1702)
gregharvey May 22, 2024
76560e9
r69424-Adding-resource-group-task (#1706)
matej5 May 23, 2024
872aa49
Adding lock file behaviour to ce-provision. (#1708)
gregharvey May 24, 2024
5127832
Bug fixes 2.x pr 2.x (#1715)
gregharvey May 27, 2024
d3b057e
Bug fixes 2.x pr 2.x (#1717)
gregharvey May 27, 2024
65f72f4
Creating a ce-provision installer script. (#1724)
gregharvey May 29, 2024
e8c73f2
Installer pr 2.x (#1726)
gregharvey May 29, 2024
8445562
Bug fixes 2.x pr 2.x (#1730)
gregharvey May 29, 2024
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
c5d4613
Altering workflow in GitHub Actions for building wiki2pages files.
gregharvey Jan 3, 2025
c3a23d5
Merging devel.
gregharvey Jan 3, 2025
8476101
Attempting to set a hosts file for Ansible in CI.
gregharvey Jan 3, 2025
142a368
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
327db08
Trying to force Ansible host.
gregharvey Jan 3, 2025
b5d201a
Trying to force Ansible host.
gregharvey Jan 3, 2025
6d531c9
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
64530b1
Trying with an inventory file instead.
gregharvey Jan 3, 2025
d9067fb
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a8ba1c4
Running Ansible as the 'ce-dev' user.
gregharvey Jan 3, 2025
4fa8896
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
9d8b47c
Fixing path to playbook.
gregharvey Jan 3, 2025
b2527c6
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
c87bbd0
Disabling host key checking.
gregharvey Jan 3, 2025
1ec568f
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
5bd801e
Disabling host checking in SSH.
gregharvey Jan 3, 2025
5549a10
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
7f08219
Trying to use ce-dev user instead of root.
gregharvey Jan 3, 2025
7466bc3
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
f9e29fc
Fixing path to scripts.
gregharvey Jan 3, 2025
1226ca4
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
c120476
Adding some debug lines to check playbooks.
gregharvey Jan 3, 2025
acafa39
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
caa1b90
Fixing workspace volume mount point.
gregharvey Jan 3, 2025
cf524fd
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
6366701
Trying a whole new /build location.
gregharvey Jan 3, 2025
0eef216
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
15af1c3
Setting permissions on mounted disk.
gregharvey Jan 3, 2025
aca17d1
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a5f04de
Checking ce-dev dir contents.
gregharvey Jan 3, 2025
7ac35e3
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
6bc2055
Changing mount point to not destroy ce-dev files.
gregharvey Jan 3, 2025
3ce8fd5
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
c562607
Commenting permissions line.
gregharvey Jan 3, 2025
763bcf1
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
9502efe
Fixing playbook paths.
gregharvey Jan 3, 2025
52e2f26
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
88a7b12
Outputting hosts and SSH config for debug.
gregharvey Jan 3, 2025
1b83d48
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
084eaa3
Checking SSH settings.
gregharvey Jan 3, 2025
d069d96
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
53b00d7
Manually creating authorized_keys.
gregharvey Jan 3, 2025
2e7d1ab
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
4e02937
Fixing path to set-current.
gregharvey Jan 3, 2025
d4ac0e9
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
36c0aeb
Refactoring SSH set-up and looking at set-current script.
gregharvey Jan 3, 2025
8506c61
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
5c4d4eb
Trying to fix mount point.
gregharvey Jan 3, 2025
45b58be
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a16ec18
Updating paths to generated docs.
gregharvey Jan 3, 2025
9794ecb
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
5c83f82
Trying to pass in path to wiki2pages.
gregharvey Jan 3, 2025
bcc9939
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a077a5f
Removing obsolete debug line.
gregharvey Jan 3, 2025
47fb34e
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
9ce237e
Correcting path to script.
gregharvey Jan 3, 2025
0f7d413
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
06c8b08
Changing path we execute from.
gregharvey Jan 3, 2025
d5f79ee
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
0f8be8b
Adding first pass at docs publish step.
gregharvey Jan 6, 2025
4660e07
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
cdb28c2
Repairing working dir paths.
gregharvey Jan 6, 2025
ef847a8
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
93751a4
Incorrect repo path.
gregharvey Jan 6, 2025
f9e702d
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
d8f3908
Removing most of the debug lines.
gregharvey Jan 6, 2025
e0ba0c6
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 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
85 changes: 41 additions & 44 deletions .github/workflows/ce-provision-publish-docs.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,57 @@
name: Build docs
name: Publish docs

# Run this workflow when a PR to 1.x gets merged
# Run this workflow on demand and every time a new commit pushed to your repository
on:
pull_request:
types: [closed]
branches:
- 1.x
workflow_dispatch:

jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
build-docs:
public-docs:
if: ${{ github.event.pull_request.head.ref != 'documentation' }}
# Name the Job
name: Build the documentation
name: Publish the ce-provision docs to GitHub
# Set the type of machine to run on
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

# Use our ce-dev Debian base container
container:
image: codeenigma/ce-dev-controller:2.x
volumes:
- ${{ github.workspace }}:/home/controller

steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

# Configures global Git variables for committing
- name: Configure Git
- name: Install wiki2pages
run: /usr/bin/su - ce-dev -c "/usr/bin/git clone https://github.com/codeenigma/wikis2pages.git /home/ce-dev/build/wiki2pages"

- name: Set up Ansible hosts file
run: |
mkdir -p /home/ce-dev/ansible/bin/hosts
echo "wikis2pages-hugo ansible_host=127.0.0.1" > /home/ce-dev/ansible/bin/hosts/hosts

- name: Set up SSH config
run: |
git config --global user.email "sysadm@codeenigma.com"
git config --global user.name "Code Enigma CI"
git config --global pull.rebase false
echo "StrictHostKeyChecking=no" > /home/ce-dev/.ssh/config
cat /home/ce-dev/.ssh/id_rsa.pub > /home/ce-dev/.ssh/authorized_keys
chown ce-dev:ce-dev /home/ce-dev/.ssh/config
chmod 700 /home/ce-dev/.ssh/config
chown ce-dev:ce-dev /home/ce-dev/.ssh/authorized_keys
chmod 700 /home/ce-dev/.ssh/authorized_keys

- name: Start SSHD
run: /usr/sbin/sshd&

# Installs the ce-dev stack
- name: Install ce-dev
- name: Initialise wiki2pages for ce-provision 2.x
run: |
cd /tmp
wget https://golang.org/dl/go1.15.8.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.15.8.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
git clone https://github.com/FiloSottile/mkcert && cd mkcert
go build -ldflags "-X main.Version=$(git describe --tags)"
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

# Uses the ce-dev stack to run Hugo to format and deploy the docs
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /bin/sh init.sh --repo https://github.com/codeenigma/ce-provision.git --branch 2.x --no-ce-dev"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /home/ce-dev/ansible/bin/ansible-playbook -e 'wiki2pages_build_path=/home/ce-dev/build/wiki2pages' -i /home/ce-dev/ansible/bin/hosts /home/ce-dev/build/wiki2pages/ce-dev/ansible/provision.yml"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /bin/sh set-current.sh --project ce-provision-2.x --no-ce-dev"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /home/ce-dev/ansible/bin/ansible-playbook -e 'wiki2pages_build_path=/home/ce-dev/build/wiki2pages' -i /home/ce-dev/ansible/bin/hosts /home/ce-dev/build/wiki2pages/ce-dev/ansible/deploy.yml"
ls -la /home/ce-dev/build/wiki2pages/public/ce-provision-2.x/

- name: Publish documentation
run: |
cd
git clone https://github.com/codeenigma/wikis2pages.git
cd wikis2pages
/bin/bash init.sh https://${{ secrets.GITHUB_TOKEN }}@github.com/codeenigma/ce-provision.git 1.x
/bin/sh set-current.sh ce-provision-1.x
docker exec --user ce-dev --workdir /home/ce-dev/deploy/live.local wikis2pages-hugo hugo
/bin/sh .github-actions-push.sh
cd /home/runner/wikis2pages/public/ce-provision-1.x
git remote add ci https://${{ secrets.DOCS_GITHUB_TOKEN }}@github.com/codeenigma/ce-provision-docs.git
git push ci master
shell: bash
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /bin/sh /home/ce-dev/build/wiki2pages/.github-actions-push.sh"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages/public/ce-provision-2.x && /usr/bin/git remote add ci https://${{ secrets.DOCS_GITHUB_TOKEN }}@github.com/codeenigma/ce-provision-docs.git"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages/public/ce-provision-2.x && /usr/bin/git push ci master"
43 changes: 43 additions & 0 deletions .github/workflows/ce-provision-test-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Run night test builds

# Run this workflow nightly
on:
schedule:
- cron: '30 4 * * *'

jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
test-nightly:
# Name the Job
name: Build server with ce-provision
# Set the type of machine to run on
runs-on: ubuntu-latest

# Use our ce-dev Debian base container
container:
image: codeenigma/ce-dev:2.x
volumes:
- ${{ github.workspace }}:/home/controller

steps:
- name: Install ce-provision
run: |
/usr/bin/curl -LO https://raw.githubusercontent.com/codeenigma/ce-provision/2.x/install.sh
/usr/bin/chmod +x ./install.sh
/usr/bin/sudo ./install.sh --docker --no-firewall

# Run a web server provision
- name: Prepare Git repos on disk
run: |
/usr/bin/git config --global --add safe.directory /home/controller/ce-provision
/usr/bin/git config --global --add safe.directory /home/controller/ce-provision/config

- name: Start SSHD
run: /usr/sbin/sshd&

- name: Provision a test web server
run: /usr/bin/su - controller -c "cd /home/controller/ce-provision && /bin/sh /home/controller/ce-provision/scripts/provision.sh --python-interpreter /home/controller/ce-python/bin/python3 --repo dummy --branch dummy --workspace /home/controller/ce-provision/ce-dev/ansible --playbook plays/web/ci.yml --own-branch 2.x --config-branch 2.x --force"

- name: Provision a test GitLab server
run: /usr/bin/su - controller -c "cd /home/controller/ce-provision && /bin/sh /home/controller/ce-provision/scripts/provision.sh --python-interpreter /home/controller/ce-python/bin/python3 --repo dummy --branch dummy --workspace /home/controller/ce-provision/ce-dev/ansible --playbook plays/gitlab/ci.yml --own-branch 2.x --config-branch 2.x --force"
8 changes: 4 additions & 4 deletions .wikis2pages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ce-provision-1.x:
ce-provision-2.x:
src: https://github.com/codeenigma/ce-provision.git
src_branch: 1.x
src_branch: 2.x
src_subdir: 'docs'
dest: https://github.com/codeenigma/ce-provision-docs.git # remote and token for pushing added in GitHub Actions directly
dest_branch: master
dest_subdir: 1.x
dest_subdir: 2.x
title: ce-provision
type: doc
base_url: https://codeenigma.github.io/ce-provision-docs/1.x
base_url: https://codeenigma.github.io/ce-provision-docs/2.x
1 change: 0 additions & 1 deletion ce-dev/ce-dev.compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.7"
x-ce_dev:
version: 1.x
registry: localhost:5000
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ usage(){
/usr/bin/echo '--version: ce-provision version to use (default: 2.x)'
/usr/bin/echo '--user: Ansible controller user (default: controller)'
/usr/bin/echo '--config: Git URL to your ce-provision Ansible config repository (default: https://github.com/codeenigma/ce-provision-config-example.git)'
/usr/bin/echo '--config-branch: branch of your Ansible config repository to use (default: 1.x)'
/usr/bin/echo '--config-branch: branch of your Ansible config repository to use (default: 2.x)'
/usr/bin/echo '--no-firewall: skip installing iptables with ports 22, 80 and 443 open'
/usr/bin/echo '--gitlab: install GitLab CE on this server (default: no, set to desired GitLab address to install, e.g. gitlab.example.com)'
/usr/bin/echo '--letsencrypt: try to create an SSL certificate with LetsEncrypt (requires DNS pointing at this server for provided GitLab URL)'
Expand Down Expand Up @@ -72,7 +72,7 @@ parse_options(){
VERSION="2.x"
CONTROLLER_USER="controller"
CONFIG_REPO="https://github.com/codeenigma/ce-provision-config-example.git"
CONFIG_REPO_BRANCH="1.x"
CONFIG_REPO_BRANCH="2.x"
GITLAB_URL="no"
LE_SUPPORT="no"
FIREWALL="true"
Expand Down
2 changes: 1 addition & 1 deletion roles/debian/nodejs/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
nodejs:
# Used by apt_unattended_upgrades
apt_origin_nodejs: "origin=. nodistro,codename=nodistro,label=. nodistro" # nodejs repo
apt_origin_nodejs: "origin=Node Source,codename=nodistro,label=Node Source" # nodejs repo
apt_signed_by_nodejs: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
apt_origin_yarn: "origin=yarn,codename=stable,label=yarn-stable" # yarn repo
apt_signed_by_yarn: https://dl.yarnpkg.com/debian/pubkey.gpg
Expand Down
8 changes: 8 additions & 0 deletions roles/debian/nodejs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
enabled: true
key_refresh_timer_OnCalendar: "Mon *-*-* 00:15:00"

- name: Modify repository for Node.js 10.x
set_fact:
apt_repository:
types: "deb deb-src"
suites: "{{ ansible_distribution_release }}"
signed_by: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
when: nodejs.version == "10.x"

- name: Add Yarn repository and key.
ansible.builtin.include_role:
name: debian/apt_repository
Expand Down
3 changes: 2 additions & 1 deletion roles/debian/ssl/templates/le_cron.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ if [ $certbot_exit_code -ne 0 ]; then
# Certbot failed, send email notification
recipient="{{ ssl.email }}"
subject="Certbot Renewal Failed"
body="Certbot renewal failed with the following output:
hostname=$(cat /etc/hostname)
body="Certbot renewal failed on server $hostname with the following output:

$certbot_output"
send_email_notification "$recipient" "$subject" "$body"
Expand Down
Loading