Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
3ccfe51
Defer nightly backups, disable ASG processes during syncs and run syn…
EmlynK Jan 20, 2022
a54c09c
Added deploy.yml examples for Drupal 9 and Localgov. Updated tests (#97)
DionisioFG Mar 10, 2022
223a3b5
Adding a new SimpleSAMLphp meta role. (#100)
gregharvey Mar 31, 2022
32843d5
Allowing users to set cachetool version properly. (#102)
gregharvey Apr 13, 2022
91ea64e
Deploy ami pr 1.x (#106)
gregharvey Apr 14, 2022
371b6b9
Making the MySQL dump command for routine back-ups less aggressive. (…
gregharvey Apr 20, 2022
a9cc7ad
Fix database backups pr 1.x (#109)
gregharvey Apr 20, 2022
4c4c3ad
Fix MySQL backup deferral. (#110)
EmlynK Apr 22, 2022
029848d
Files recurse fix pr 1.x (#112)
EmlynK Apr 26, 2022
b71fa83
Improve multisite support (#115)
EmlynK Apr 29, 2022
c933dc8
Static credentials handling fix pr 1.x (#119)
EmlynK May 23, 2022
b6ea020
Making contents of deploy tar 'ownerless'. (#117)
gregharvey May 31, 2022
1c2b206
Implement file syncing (#124)
EmlynK Jun 7, 2022
1cd0ed0
Create Drupal-specific sync roles (#128)
EmlynK Jun 8, 2022
904033f
Fixing GRANT query for MySQL > 8.0. (#131)
gregharvey Jun 10, 2022
94715d8
Use IF NOT EXISTS when creating database user as that command fails i…
EmlynK Jun 13, 2022
42f12c8
Attempt to fix syncs whenever the 'dump' type is used for source or t…
EmlynK Jun 16, 2022
a9c6abf
Squashfs pr 1.x (#150)
gregharvey Jun 20, 2022
a4de771
Check deploy_code.mount_type is defined when setting facts in init ro…
EmlynK Jun 24, 2022
fe2aaf1
Make config imports during syncs optional (#157)
EmlynK Jun 28, 2022
451227d
Squashfs pr 1.x (#153)
gregharvey Jun 29, 2022
c7aae71
Add cache clears to Drupal deployments, before DB updates and stuff (…
EmlynK Aug 16, 2022
15b8daa
Avoid leaving exponentially growing sqsh files in build locations! (#…
gregharvey Sep 5, 2022
5cab4ae
Exclude sqsh file pr 1.x (#167)
gregharvey Oct 6, 2022
459faba
Removing unnecessary lines in Drupal config generation. (#169)
gregharvey Oct 7, 2022
200f590
Ensuring dump directory exists on backup step. (#172)
gregharvey Oct 10, 2022
2c74432
Allowing Drupal 7 jobs to disable cron. (#174)
gregharvey Oct 14, 2022
0385211
Suppress db revert pr 1.x (#177)
gregharvey Oct 14, 2022
86f138a
Fixing bad assumption that databases will have TCP connections. (#179)
gregharvey Nov 18, 2022
b236540
Handling the 'drush deploy' command more elegantly for Drupal 8+. (#180)
gregharvey Dec 9, 2022
58069b6
Attempt to clear the opcache during Drupal deployments. (#182)
gregharvey Dec 9, 2022
3ea0bfe
Better drush deploy support pr 1.x (#185)
gregharvey Dec 9, 2022
b835344
Cron job schedule params pr 1.x (#190)
tymofiisobchenko Dec 30, 2022
e97e852
Adding option to stop services that might interfere with a squashfs m…
gregharvey Jan 23, 2023
7bbb77f
Drush refactor pr 1.x (#197)
gregharvey Jan 25, 2023
cc31f6a
Better deploy_code role docs. (#213)
gregharvey Jan 27, 2023
f6a3cb3
Cachetool settings and drupal7 tasks fix pr 1.x (#211)
tymofiisobchenko Jan 27, 2023
44fef49
previous_cachetool_remove_before_install_new (#224)
tymofiisobchenko Jan 31, 2023
f1b2b90
Fix cachetool removal pr 1.x (#227)
tymofiisobchenko Jan 31, 2023
de6d80b
Fix cachetool removal pr 1.x (#229)
tymofiisobchenko Feb 1, 2023
1eda678
Documentation enhancements pr 1.x (#218)
gregharvey Feb 3, 2023
09e8639
Drush refactor pr 1.x (#231)
gregharvey Feb 3, 2023
3ba2fe0
Drush refactor pr 1.x (#234)
gregharvey Feb 17, 2023
75ff9ee
Drush refactor pr 1.x (#236)
gregharvey Feb 17, 2023
8d02260
Change php detection for fastcgi and cachetool pr 1.x (#238)
tymofiisobchenko Mar 6, 2023
7971ce7
Cachetool bin per site pr 1.x (#243)
tymofiisobchenko Mar 14, 2023
31c3197
apcu no longer has an 'all' option. (#245)
gregharvey Mar 14, 2023
b5fed24
Refactoring cachetool path setting to match other squashfs vars. (#247)
gregharvey Mar 15, 2023
459689f
Cachetool pr 1.x (#249)
gregharvey Mar 15, 2023
0b39b64
Ensuring we can prevent features and ctools deployments in Drupal 7. …
gregharvey Mar 15, 2023
3d6172a
Cachetool pr 1.x (#251)
gregharvey Mar 15, 2023
1f2e3b6
improving_old_builds_cleanup (#254)
tymofiisobchenko Mar 20, 2023
dd1f5ce
Adding escaped backticks to db names to be safe. (#256)
gregharvey Apr 12, 2023
df74ac6
Mysql db name pr 1.x (#258)
gregharvey Apr 12, 2023
3b49dc9
Mysql db name pr 1.x (#260)
gregharvey Apr 12, 2023
8c30320
Mysql db name pr 1.x (#262)
gregharvey Apr 13, 2023
15ae901
Mysql db name pr 1.x (#264)
gregharvey Apr 14, 2023
c7e4a47
Bug fixes pr 1.x (#266)
gregharvey Apr 14, 2023
5b28bdd
Bug fixes pr 1.x (#268)
gregharvey Apr 19, 2023
ce46e32
Making sync paths build unique.
gregharvey Apr 20, 2023
6245af8
Merge branch 'devel' into 1.x
gregharvey Apr 20, 2023
aa9d3b0
Adding --host parameter to build.sh for pre-deploy host checking with…
gregharvey Apr 21, 2023
fd7c17d
Making syncs safer and more efficient. (#273)
gregharvey Apr 25, 2023
ac8b114
Bug fixes pr 1.x (#278)
gregharvey May 11, 2023
430b731
Bug fixes pr 1.x (#282)
gregharvey May 12, 2023
4d211b5
Bug fixes pr 1.x (#284)
gregharvey May 17, 2023
7dbc30c
Bug fixes pr 1.x (#287)
gregharvey May 25, 2023
1e540b4
Adding verbose output for drush. (#289)
gregharvey Jun 21, 2023
008a1e0
Adding container push and build code. (#300)
gregharvey Jun 22, 2023
1fa7eb4
Ecs deployments pr 1.x (#314)
gregharvey Jun 27, 2023
49a3087
db_import_speed_up (#291)
tymofiisobchenko Jun 27, 2023
fc3b544
Ecs deployments pr 1.x (#317)
gregharvey Jun 27, 2023
014874b
fix_typo (#320)
tymofiisobchenko Jun 27, 2023
9b5d56b
Ecs deployments pr 1.x (#322)
gregharvey Jun 27, 2023
77087ed
Ecs deployments pr 1.x (#325)
gregharvey Jun 29, 2023
443fdf5
Ecs deployments pr 1.x (#329)
gregharvey Jun 29, 2023
0859ebf
Ecs deployments pr 1.x (#331)
gregharvey Jun 30, 2023
ace4578
Bug fixes pr 1.x (#334)
gregharvey Jul 10, 2023
0df95e0
Bug fixes pr 1.x (#336)
gregharvey Jul 19, 2023
e304792
default_to_gzip (#338)
tymofiisobchenko Jul 21, 2023
a8c29c6
update_for_database_names_handling (#340)
tymofiisobchenko Aug 4, 2023
27d7588
update_for_database_names_handling_fix (#342)
tymofiisobchenko Aug 4, 2023
84488a8
Adding syncing for feature branches. (#346)
gregharvey Aug 10, 2023
5023238
Feature branching pr 1.x (#348)
gregharvey Aug 10, 2023
aea9803
Feature branching pr 1.x (#350)
gregharvey Aug 11, 2023
bff8a40
Improving db handling and fixing adding databases later. (#358)
gregharvey Sep 22, 2023
0ed0378
Bug fixes pr 1.x (#366)
gregharvey Sep 22, 2023
f8a7eae
Bug fixes pr 1.x (#368)
gregharvey Sep 25, 2023
df327b4
Bug fixes pr 1.x (#372)
gregharvey Sep 25, 2023
7b775ee
Bug fixes pr 1.x (#374)
gregharvey Sep 27, 2023
00a636c
Bug fixes pr 1.x (#375)
gregharvey Sep 27, 2023
b033cdd
r66858-adding-variable-to-skip-long-running-tasks (#352)
matej5 Oct 4, 2023
bcfa95a
Fixing documentation for opcache role. (#354)
gregharvey Oct 4, 2023
fb43059
r67016-changing-path-for-database_backup-task (#356)
matej5 Oct 4, 2023
a4c04f6
67412 callback plugin fail no hosts pr 1.x (#377)
gregharvey Oct 31, 2023
d651f84
Bug fixes pr 1.x (#379)
gregharvey Oct 31, 2023
6c9213a
Bug fixes pr 1.x (#381)
gregharvey Nov 2, 2023
7729a2e
Bug fixes pr 1.x (#383)
gregharvey Nov 7, 2023
3132c69
Bug fixes pr 1.x (#386)
gregharvey Nov 9, 2023
5c44c3c
Bug fixes pr 1.x (#388)
gregharvey Nov 13, 2023
66dee82
Bug fixes pr 1.x (#391)
gregharvey Nov 16, 2023
58f9526
Bug fixes pr 1.x (#393)
gregharvey Nov 24, 2023
0b5d060
Ecs deployments pr 1.x (#397)
gregharvey Dec 21, 2023
31a95fd
Bug fixes pr 1.x (#400)
gregharvey Jan 11, 2024
b711953
Bug fixes pr 1.x (#402)
gregharvey Jan 15, 2024
6a89c54
r67637-terminate-sessions-keeping-loop-device-busy (#405)
tymofiisobchenko Jan 19, 2024
4a777a4
Avoiding-cache-clear-warning-for-site-variable (#415)
matej5 Jan 19, 2024
27a7160
additional check and debug task (#417)
tymofiisobchenko Jan 22, 2024
8408634
r65896-cache-clear-path (#422)
tymofiisobchenko Jan 24, 2024
53d1f9c
r65896-cache-container-table-truncate (#434)
tymofiisobchenko Jan 30, 2024
575b0cc
r65896-cache-container-table-truncate-change-tasks-order (#439)
tymofiisobchenko Jan 31, 2024
4c9ab4e
Bug fixes pr 1.x (#441)
gregharvey Jan 31, 2024
3df0030
Adding a pause if a replica is declared, so the replica can catch up …
gregharvey Feb 8, 2024
ddab8aa
Db replica support pr 1.x (#445)
gregharvey Feb 22, 2024
df0e68a
Db replica support pr 1.x (#447)
gregharvey Feb 23, 2024
5b2204e
448: Drupal 10 default.settings.php for multi-site MR 1.x (#449)
philipnorton42 Mar 8, 2024
8777987
New StatusCake check handling role. (#454)
gregharvey Apr 4, 2024
4f52908
Statuscake maintenance role pr 1.x (#456)
gregharvey Apr 4, 2024
95dc960
Statuscake maintenance role pr 1.x (#458)
gregharvey Apr 5, 2024
f417838
Adding extra healthcheck options for ECS services. (#463)
gregharvey Apr 26, 2024
8e01d77
Adding behaviour to suspend autoscaling on deploy. (#465)
gregharvey Apr 26, 2024
61471fd
Ecs healthcheck vars pr 1.x (#467)
gregharvey Apr 26, 2024
c9897f8
Fixing MySQL servers with unix socket.
gregharvey May 20, 2024
70192ad
Bad var name.
gregharvey May 20, 2024
ce9b24a
Extending MySQL Unix socket support.
gregharvey May 20, 2024
e8e571f
Bug fixes pr 1.x (#469)
gregharvey May 23, 2024
a236c59
Lock file pr 1.x (#471)
gregharvey May 24, 2024
202e5be
Bug fixes pr 1.x (#476)
gregharvey May 27, 2024
9d7dbf7
Adding a new Drupal 10 meta role. (#478)
gregharvey May 27, 2024
1e0cbe0
r69347-db-import-from-deploy-server (#480)
tymofiisobchenko May 31, 2024
207be4a
Bug fixes pr 1.x (#486)
gregharvey Jun 5, 2024
2ea17bc
472 Cache clearing for Symfony based projects (#473)
matason Jun 6, 2024
2ed8f45
Feature branching pr 1.x (#488)
gregharvey Jul 19, 2024
04f8c1c
additional_symlink_task_fix_for_squashfs (#494)
tymofiisobchenko Aug 6, 2024
19e815c
fix cachetool url (#500)
tymofiisobchenko Aug 20, 2024
747ec29
strip sandbox mode line from sqldump (#502)
nfawbert Sep 26, 2024
ad3165c
Updating-crons-mailto (#506)
drazenCE Nov 28, 2024
dd530bb
Updating-cron-path-fixing-mailto (#508)
drazenCE Dec 19, 2024
bfeb10b
Fixing Mautic deployment workflow.
gregharvey Dec 30, 2024
cc95886
Ensuring symlink destinations exist.
gregharvey Dec 30, 2024
be4cf6e
Merging devel.
gregharvey Dec 30, 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
30 changes: 15 additions & 15 deletions roles/_meta/deploy-mautic/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
---
# Default Mautic role.

- import_role:
- ansible.builtin.import_role:
name: _init
- import_role:
- ansible.builtin.import_role:
name: deploy_code
# - import_role:
# name: composer
# - import_role:
- ansible.builtin.import_role:
name: composer
# - ansible.builtin.import_role:
# name: maintenance_mode
# vars:
# maintenance_mode:
# operation: offline
- import_role:
- ansible.builtin.import_role:
name: database_backup
- import_role:
- ansible.builtin.import_role:
name: config_generate
- import_role:
- ansible.builtin.import_role:
name: database_apply
- import_role:
- ansible.builtin.import_role:
name: live_symlink
- import_role:
- ansible.builtin.import_role:
name: cache_clear/cache_clear-opcache
- import_role:
- ansible.builtin.import_role:
name: cache_clear/cache_clear-mautic
# - import_role:
# - ansible.builtin.import_role:
# name: maintenance_mode
# vars:
# maintenance_mode:
# operation: online
- import_role:
- ansible.builtin.import_role:
name: cron/cron_database_backup
- import_role:
- ansible.builtin.import_role:
name: cron/cron_mautic
- import_role:
- ansible.builtin.import_role:
name: _exit
7 changes: 5 additions & 2 deletions roles/cron/cron_mautic/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
---
- name: Set console path.
ansible.builtin.set_fact:
symfony_console_bin: "{{ symfony_console_bin | default('env php ' + deploy_path + '/bin/console') }}"

- name: Setup Mautic cron tasks.
cron:
name: "{{ project_name }}_{{ build_type }}_{{ entry.job }}"
minute: "{{ entry.minute }}"
hour: "{{ entry.hour | default(omit) }}"
job: "env php {{ live_symlink_dest }}/{{ webroot }}/app/console {{ entry.job }}"
job: "env php {{ symfony_console_bin }} {{ entry.job }}"
with_items: "{{ cron_mautic.entries }}"
loop_control:
loop_var: entry
when: deploy_operation == 'deploy'
when: deploy_operation == 'deploy'
4 changes: 2 additions & 2 deletions roles/live_symlink/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ deploy_user: 'deploy'
live_symlink:
# Either update (for successful builds) or revert.
operation: update
# Specify any additional symlink to create, with src (target) and dest (link).
# Specify any additional directory symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# force: set to true to create the symlinks in two cases: the source file does not exist but will appear later; the destination exists and is a file.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# - src: '/home/{{ deploy_user }}/shared/{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# force: true
# - src: '/var/simplesaml/etc'
Expand Down
33 changes: 22 additions & 11 deletions roles/live_symlink/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,27 @@
- live_symlink.templates | length
- deploy_operation == 'deploy'

- name: Create additional symlinks.
ansible.builtin.file:
src: "{{ link.src }}"
dest: "{{ deploy_path }}/{{ link.dest }}"
state: link
follow: false
force: "{{ link.force | default(true) }}"
with_items: "{{ live_symlink.symlinks }}"
loop_control:
loop_var: link
- name: Handle additional symlinks.
when:
- live_symlink.symlinks | length
- deploy_operation == 'deploy'
- deploy_operation == 'deploy'
block:
- name: Ensure additional symlink sources exist.
ansible.builtin.file:
path: "{{ link.src }}"
state: directory
mode: '0755'
with_items: "{{ live_symlink.symlinks }}"
loop_control:
loop_var: link

- name: Create additional symlinks.
ansible.builtin.file:
src: "{{ link.src }}"
dest: "{{ deploy_path }}/{{ link.dest }}"
state: link
follow: false
force: "{{ link.force | default(true) }}"
with_items: "{{ live_symlink.symlinks }}"
loop_control:
loop_var: link
Loading