Set download-ib01 to quick-sync every 10min with a lock.
This commit is contained in:
parent
38ec6283e7
commit
e59eb551a8
2 changed files with 5 additions and 6 deletions
|
@ -1,4 +1,3 @@
|
|||
# run twice daily rsync of download. but lock it
|
||||
# Run quick mirror fedora every 10minutes
|
||||
MAILTO=smooge@gmail.com,root@fedoraproject.org
|
||||
00 00,03,06,09,12,15,18,21 * * * root /usr/local/bin/lock-wrapper sync-up-downloads "/usr/local/bin/sync-up-downloads"
|
||||
00 11,23 * * * root /usr/local/bin/lock-wrapper sync-up-other "/usr/local/bin/sync-up-other"
|
||||
*/10 * * * * root flock -n -E0 /tmp/download-sync -c /root/quick-fedora-mirror/quick-fedora-mirror
|
||||
|
|
|
@ -53,9 +53,9 @@
|
|||
- name: put in script for syncing on download-ib01
|
||||
copy: src="{{ files }}/download/sync-up-other.sh.ib01" dest=/usr/local/bin/sync-up-other owner=root group=root mode=755
|
||||
when: inventory_hostname == 'download-ib01.fedoraproject.org'
|
||||
# - name: put in cron job for syncing
|
||||
# copy: src="{{ files }}/download/download-sync.cron.ib01" dest=/etc/cron.d/download-sync owner=root group=root mode=644
|
||||
# when: inventory_hostname == 'download-ib01.fedoraproject.org'
|
||||
- name: put in cron job for syncing
|
||||
copy: src="{{ files }}/download/download-sync.cron.ib01" dest=/etc/cron.d/download-sync owner=root group=root mode=644
|
||||
when: inventory_hostname == 'download-ib01.fedoraproject.org'
|
||||
- name: put in last sync scrypt for download-ib01
|
||||
copy: src="{{ files}}/download/last-sync" dest=/usr/local/bin/last-sync mode=0755
|
||||
when: inventory_hostname == 'download-ib01.fedoraproject.org'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue