fix download cron job from hourly to daily

This commit is contained in:
Stephen Smoogen 2014-06-11 00:43:55 +00:00
parent 3078d40cd5
commit a442e735c9
2 changed files with 6 additions and 4 deletions

View file

@ -8,14 +8,16 @@
RSYNC='/usr/bin/rsync'
RS_OPT="-avSHP --numeric-ids"
RS_DEADLY="--delete --delete-excluded --delete-delay --delay-updates"
ALT_EXCLUDES="--exclude stage/deltaisos/archive --exclude stage/20-Alpha* --exclude stage/20-Beta*"
ALT_EXCLUDES="--exclude deltaisos/archive"
EPL_EXCLUDES=""
FED_EXCLUDES=""
SERVER=dl.fedoraproject.org
# http://dl.fedoraproject.org/pub/alt/
${RSYNC} ${RS_OPT} ${RS_DEADLY} ${ALT_EXCLUDES} ${SERVER}::fedora-alt/ /srv/pub/alt/ | tail -n2 | logger -p local0.notice -t rsync_updates_alt
# http://dl.fedoraproject.org/pub/alt/stage/
${RSYNC} ${RS_OPT} ${RS_DEADLY} ${ALT_EXCLUDES} ${SERVER}::fedora-alt/stage/ /srv/pub/alt/stage/ | tail -n2 | logger -p local0.notice -t rsync_updates_alt_stg
# http://dl.fedoraproject.org/pub/alt/stage/
${RSYNC} ${RS_OPT} ${RS_DEADLY} ${ALT_EXCLUDES} ${SERVER}::fedora-alt/bfo/ /srv/pub/alt/bfo/ | tail -n2 | logger -p local0.notice -t rsync_updates_alt_bfo
# http://dl.fedoraproject.org/pub/epel/
${RSYNC} ${RS_OPT} ${RS_DEADLY} ${EPL_EXCLUDES} ${SERVER}::fedora-epel/ /srv/pub/epel/ | tail -n2 | logger -p local0.notice -t rsync_updates_epel
# http://dl.fedoraproject.org/pub/fedora/

View file

@ -70,7 +70,7 @@
- include: "{{ tasks }}/openvpn_client.yml"
when: datacenter != 'phx2'
- name: put in hourly cron job for syncing
action: copy src="{{ files }}/download/cron-hourly-sync.sh" dest=/etc/cron.hourly/sync-mirror.sh owner=root group=root mode=755
action: copy src="{{ files }}/download/cron-daily-sync.sh" dest=/etc/cron.daily/sync-mirror.sh owner=root group=root mode=755
when: datacenter == 'ibiblio'
handlers: