Re: Freeze break: sync download-ib01 from dl.fedoraproject.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+1


On Fri, Nov 23, 2012 at 6:06 PM, Kevin Fenzi <kevin@xxxxxxxxx> wrote:
We pointed our download-i2 mirrors over to download-ib01 while they are
in the process of being migrated. Sadly, we didn't notice that
download-ib01 was syncing from download-i2. ;(

The following repoints it and adds a lock wrapper around the sync job.

+1s?

kevin
--
diff --git a/modules/mirrormanager/files/sync.sh b/modules/mirrormanager/files/sync.sh
index 6a30d73..9a63adf 100755
--- a/modules/mirrormanager/files/sync.sh
+++ b/modules/mirrormanager/files/sync.sh
@@ -12,7 +12,7 @@ ALT_EXCLUDES="--exclude stage/deltaisos/archive"
 EPL_EXCLUDES=""
 FED_EXCLUDES=""

-SERVER=download-rdu02-I2.fedoraproject.org
+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
diff --git a/modules/mirrormanager/manifests/init.pp b/modules/mirrormanager/manifests/init.pp
index e5ceb4e..7dcc375 100644
--- a/modules/mirrormanager/manifests/init.pp
+++ b/modules/mirrormanager/manifests/init.pp
@@ -329,7 +329,7 @@ class mirrormanager::sync {
     }

     cron { 'sync-mirror':
-        command => '/usr/local/bin/sync.sh',
+        command => '/usr/local/bin/lock-wrapper mirrorsync /usr/local/bin/sync.sh',
         require => [File['/etc/mirrormanager-client/report_mirror.conf'], File['/usr/local/bin/sync.sh']],
         user => "root",
         hour => [ 13 ],

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure



--
Xavier.t Lamien
--
http://fedoraproject.org/wiki/XavierLamien
GPG-Key ID: F3903DEB
Fingerprint: 0F2A 7A17 0F1B 82EE FCBF 1F51 76B7 A28D F390 3DEB
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux