and we will try to get this to work

This commit is contained in:
Stephen Smoogen 2018-07-01 23:39:54 +00:00
parent 3db30a5396
commit 3ff1649a8a
5 changed files with 29 additions and 4 deletions

View file

@ -0,0 +1,24 @@
#!/bin/bash
##
## This script is used to sync data from main download servers to
## secondary server at RDU community cage.
##
RSYNC='/usr/bin/rsync'
RS_OPT="-avSHP --numeric-ids"
RS_DEADLY="--delete --delete-excluded --delete-delay --delay-updates"
EPL_EXCLUDES=""
FED_EXCLUDES=""
SERVER=dl.fedoraproject.org
# 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/
${RSYNC} ${RS_OPT} ${RS_DEADLY} ${FED_EXCLUDES} ${SERVER}::fedora-enchilada0/ /srv/pub/fedora/ | tail -n2 | logger -p local0.notice -t rsync_updates_fedora
# http://dl.fedoraproject.org/pub/fedora-secondary/
${RSYNC} ${RS_OPT} ${RS_DEADLY} ${FED_EXCLUDES} ${SERVER}::fedora-secondary0/ /srv/pub/fedora-secondary/ | tail -n2 | logger -p local0.notice -t rsync_updates_fedora_2nd
# Let MM know I'm all up to date
#/usr/bin/report_mirror

View file

@ -33,6 +33,7 @@ dl_tier1:
- auslistsprd01.us.dell.com # 143.166.82.43
- bonaparte.hrz.tu-chemnitz.de # 134.109.228.109
- download-ib01.fedoraproject.org # 152.19.134.145
- download-cc-rdu01.fedoraproject.org # 8.43.85.72
- fedora.c3sl.ufpr.br # 200.236.31.8
- frisal.switch.ch # 130.59.113.36
- ftp.heanet.ie # 193.1.193.64

View file

@ -340,7 +340,7 @@ download-ib01.fedoraproject.org
[download-rdu2]
download-rdu01.fedoraproject.org
[download-cc-rdu2]
[download-cc-rdu]
download-cc-rdu01.fedoraproject.org
[download_tier1]

View file

@ -1,4 +1,4 @@
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=download-ibiblio"
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=download-ibiblio:download-cc-rdu"
- name: Download servers
hosts: download

View file

@ -1,6 +1,6 @@
<VirtualHost *:80>
ServerName dl.fedoraproject.org
ServerAlias archive.fedoraproject.org archives.fedoraproject.org secondary.fedoraproject.org download-ib01.fedoraproject.org
ServerAlias archive.fedoraproject.org archives.fedoraproject.org secondary.fedoraproject.org download-ib01.fedoraproject.org download-cc-rdu01.fedoraproject.org
ServerAdmin webmaster@fedoraproject.org
TraceEnable Off
@ -10,7 +10,7 @@
<VirtualHost *:443>
ServerName dl.fedoraproject.org
ServerAlias archive.fedoraproject.org archives.fedoraproject.org secondary.fedoraproject.org download-ib01.fedoraproject.org
ServerAlias archive.fedoraproject.org archives.fedoraproject.org secondary.fedoraproject.org download-ib01.fedoraproject.org download-cc-rdu01.fedoraproject.org
ServerAdmin webmaster@fedoraproject.org