Skip to content

Commit c6c19b1

Browse files
gsaudade99kysrpex
authored andcommitted
sync with master + rollback docker cleanup on sn09
1 parent 40492b1 commit c6c19b1

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

group_vars/sn09/sn09.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ firewall_htcondor_shared_port_service: >
5757
<port protocol="tcp" port="9628"/>
5858
</service>
5959
60+
# fs-maintenance
61+
fsm_maintenance_dir: '/data/dnb01/maintenance'
62+
fsm_cron_tasks:
63+
docker:
64+
enable: true
65+
name: 'Docker clean up'
66+
minute: 30
67+
hour: 2
68+
dom: '*'
69+
month: '*'
70+
dow: '*'
71+
job: '. {{ galaxy_root }}/.bashrc && docker system prune -f > /dev/null'
72+
user: '{{ fsm_galaxy_user.username }}'
73+
6074
# Telegraf
6175
telegraf_agent_hostname: '{{ hostname }}'
6276
telegraf_agent_version: 1.17.2

sn09.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,6 @@
154154
- 'telegraf'
155155
- 'stats' # special account to retrieve statistics from the server in read-only mode
156156

157-
- name: Set temporary cron for cleaning docker images
158-
ansible.builtin.cron:
159-
name: 'Temporary docker cleanup – needs upstream fix see issue #584'
160-
minute: '0'
161-
hour: '*/3'
162-
job: '/bin/docker system prune --all -f > /dev/null'
163-
164157
# Note (ToDo): We should ensure that the Gunicorn sockets are created with the correct SELinux
165158
# context to avoid adding or allowing unconfined contexts. This will further tighten
166159
# the security of the Galaxy instance. (Check the systemd role that is creating the sockets and
@@ -353,6 +346,7 @@
353346
- usegalaxy_eu.galaxy_systemd # Manage the Galaxy processes with SystemD
354347
- usegalaxy-eu.update-hosts # Update hosts list
355348
- usegalaxy_eu.gie_proxy # Setup the NodeJS proxy for GxIT
349+
- usegalaxy_eu.fs_maintenance
356350
- usegalaxy-eu.logrotate # Rotate logs
357351
- usegalaxy-eu.error-pages # Copy the NGINX error pages
358352
- usegalaxy-eu.fix-stuck-handlers # Restart handlers to prevent several classes of issues

0 commit comments

Comments
 (0)