deploy-domtool: add mccarthy.hcoop.net
[hcoop/scripts.git] / deploy-domtool
CommitLineData
af787010
CE
1#!/bin/bash -e
2
3# deploy domtool to all machines
4
c6119dbd 5HOSTS_SERVER="fritz"
af787010
CE
6
7# todo: outpost (needs kerberos auth)
19f42862 8HOSTS_SLAVE="deleuze navajos bog hopper mccarthy outpost"
af787010
CE
9
10for master in $HOSTS_SERVER;
11do
12 echo "##### Building MASTER on $master"
13 ssh -K $master /afs/hcoop.net/common/etc/scripts/deploy-domtool-on-host --server
c6119dbd 14 echo "##### FINISHED Building MASTER on $master"
af787010
CE
15done
16
17function build_slave ()
18{
19 echo "##### Building SLAVE on $1"
20 ssh -K $1 /afs/hcoop.net/common/etc/scripts/deploy-domtool-on-host --slave
21 echo "##### FINISHED Building SLAVE on $1"
22}
23
24export -f build_slave
25
26echo $HOSTS_SLAVE | parallel -j 10 -d ' ' build_slave {}
27
28#for slave in $HOSTS_SLAVE;
29#do
30# echo "##### Building SLAVE on $slave"
31# ssh -K $slave ~clinton_admin/deploy-domtool-on-host.sh --slave
32#done