let us try another fix for the download-ib box

This commit is contained in:
Stephen Smoogen 2014-06-11 16:12:10 +00:00
parent b87a81e522
commit b80e127aed
4 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,3 @@
# run twice daily rsync of download. but lock it
MAILTO=smooge@gmail.com
00 11,23 * * * root /usr/local/bin/lock-wrapper sync-up-downloads "/usr/local/bin/sync-up-downloads"

View file

@ -0,0 +1,3 @@
# run rdiff backups
MAILTO=kevin@scrye.com,smooge@gmail.com
00 22 * * * root /usr/local/bin/lock-wrapper run-rdiff-backups "/usr/local/bin/run-rdiff-backups"

View file

@ -69,8 +69,11 @@
- include: "{{ tasks }}/apache.yml"
- include: "{{ tasks }}/openvpn_client.yml"
when: datacenter != 'phx2'
- name: put in hourly cron job for syncing
action: copy src="{{ files }}/download/cron-daily-sync.sh" dest=/etc/cron.daily/sync-mirror.sh owner=root group=root mode=755
- name: put in script for syncing
action: copy src="{{ files }}/download/sync-up-downloads.sh" dest=/usr/local/bin/sync-up-downloads owner=root group=root mode=755
when: datacenter == 'ibiblio'
- name: put in cron job for syncing
action: copy src="{{ files }}/download/download-sync.cron" dest=/etc/cron.d/download-sync owner=root group=root mode=644
when: datacenter == 'ibiblio'
handlers: