]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
update_all_pbuilders.sh: update pbuilder images on all deb_hosts
authorSage Weil <sage@inktank.com>
Tue, 25 Sep 2012 17:14:50 +0000 (10:14 -0700)
committerSage Weil <sage@inktank.com>
Tue, 25 Sep 2012 17:14:50 +0000 (10:14 -0700)
update_all_pbuilders.sh [new file with mode: 0755]

diff --git a/update_all_pbuilders.sh b/update_all_pbuilders.sh
new file mode 100755 (executable)
index 0000000..61d9989
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh -x
+
+set -e
+
+bindir=`dirname $0`
+
+pids=""
+for rem in `cat $bindir/deb_hosts`
+do
+    echo rem $rem
+    ssh $rem sudo rm -rf /tmp/ceph-build.\* \; sudo mkdir -p /srv/debian-base
+    ssh $rem git clone git://github.com/ceph/ceph-build /tmp/ceph-build.$$
+    ssh $rem sudo /tmp/ceph-build.$$/update_pbuilder.sh /srv/debian-base
+    pids="$pids $!"
+done
+
+echo pids $pids
+for p in $pids
+do
+    wait $p
+done
+