diff options
author | Stephen Smoogen <smooge@redhat.com> | 2014-06-11 16:12:10 +0000 |
---|---|---|
committer | Stephen Smoogen <smooge@redhat.com> | 2014-06-11 16:12:10 +0000 |
commit | b80e127aed63a345856796b72bf1b86a78ee0db9 (patch) | |
tree | 560fc7a41ee97c473f286b51775a51f3c6f50f71 | |
parent | b87a81e5224c3bc5754b3a66d2bca1571984bba9 (diff) | |
download | ansible-b80e127aed63a345856796b72bf1b86a78ee0db9.tar.gz ansible-b80e127aed63a345856796b72bf1b86a78ee0db9.tar.xz ansible-b80e127aed63a345856796b72bf1b86a78ee0db9.zip |
let us try another fix for the download-ib box
-rw-r--r-- | files/download/download-sync.cron | 3 | ||||
-rwxr-xr-x | files/download/sync-up-downloads.sh (renamed from files/download/cron-daily-sync.sh) | 0 | ||||
-rw-r--r-- | files/rdiff-backup/#run-rdiff-backups.cron# | 3 | ||||
-rw-r--r-- | playbooks/groups/download.yml | 7 |
4 files changed, 11 insertions, 2 deletions
diff --git a/files/download/download-sync.cron b/files/download/download-sync.cron new file mode 100644 index 000000000..d01dc5620 --- /dev/null +++ b/files/download/download-sync.cron @@ -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" diff --git a/files/download/cron-daily-sync.sh b/files/download/sync-up-downloads.sh index 22128cc3b..22128cc3b 100755 --- a/files/download/cron-daily-sync.sh +++ b/files/download/sync-up-downloads.sh diff --git a/files/rdiff-backup/#run-rdiff-backups.cron# b/files/rdiff-backup/#run-rdiff-backups.cron# new file mode 100644 index 000000000..e1045d232 --- /dev/null +++ b/files/rdiff-backup/#run-rdiff-backups.cron# @@ -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" diff --git a/playbooks/groups/download.yml b/playbooks/groups/download.yml index a400a9f57..9297e73a2 100644 --- a/playbooks/groups/download.yml +++ b/playbooks/groups/download.yml @@ -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: |