-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdeployAll
executable file
·53 lines (41 loc) · 1.12 KB
/
deployAll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Deploys LDM to all permitted hosts
set -e
versOpt=${1:+-v $1}
cd `dirname $0`
# NOAAPort ingest test system (password required)
#deploy -n chico
# Non-operational backend cluster node. Needs "--with-noaaport".
# Tom's using uni14 and uni17 for fanout testing
#deploy -n uni15
# Lead (for testing pqact(1))
#deploy lead
#exit
# LDM7 systems (no password required)
declare -A deployOpts
deployOpts+=([ca]='-m -u ldm7')
deployOpts+=([co]='-m -u ldm7')
deployOpts+=([md]='-m -r centos -s -u ldm7')
deployOpts+=([mo]='-m ')
deployOpts+=([nj]='-m ')
deployOpts+=([ut]='-m -s ')
deployOpts+=([va]='-m -r ldm7 -s -u ldm7')
deployOpts+=([wa]='-m -s ')
deployOpts+=([wi]='-m -s ')
declare -a sites
sites+=(ca)
sites+=(co)
sites+=(md)
sites+=(mo)
sites+=(nj)
sites+=(ut)
sites+=(va)
sites+=(wa)
sites+=(wi)
for site in ${sites[*]}; do
./deploy ${deployOpts[$site]} $versOpt $site >&$site.deplog &
done
wait
for site in ${sites[*]}; do
cat $site.deplog
echo '****************************************************'
done