Add s3-mirror role to mm-backend01

Add cron job for s3logs-sync, but disabled for now.
This commit is contained in:
Kevin Fenzi 2015-07-27 19:37:54 +00:00
parent 61bf757c12
commit 2c5a5af8a1
2 changed files with 7 additions and 0 deletions

View file

@ -55,6 +55,7 @@
roles:
- mirrormanager/backend
- s3-mirror
handlers:
- include: "{{ handlers }}/restart_services.yml"

View file

@ -39,3 +39,9 @@
- name: s3sync-logs
copy: src=s3sync-logs dest=/usr/local/bin/s3sync-logs owner=s3-mirror group=s3-mirror mode=0755
- name: s3sync-logs cron
cron: name="s3sync-logs" hour="0" user="root"
job='/usr/local/bin/lock-wrapper s3sync-logs "/bin/sleep $((${RANDOM} \% 300)); /usr/local/bin/s3sync-logs >> /var/log/s3-mirror-logs/s3sync-logs.log 2>&1" | /usr/local/bin/nag-once s3mirror-logs 12h 2>&1'
cron_file=s3sync-logs
state=absent