This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup-broker.sh
96 lines (82 loc) · 1.97 KB
/
setup-broker.sh
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
# Run all the scripts to setup a broker node
# setup variables
source ./oo-install.conf
if [ "$1" == "--slow" ] ; then
SLOW="yes"
fi
if ! [ "$OPENSHIFT_SOURCE" == "distro" ] ; then
if [ "$SLOW" == "yes" ] ; then
echo "Setup Yum Repos"
echo " Hit Enter to continue"
read testinput
fi
sh common-repo.sh
fi
if [ "$SLOW" == "yes" ] ; then
echo "Yum Update"
echo " Hit Enter to continue"
read testinput
fi
yum clean all ; yum -y update
if [ "$SLOW" == "yes" ] ; then
echo "Verify basic packages are installed"
echo " Hit Enter to continue"
read testinput
fi
sh common-packages.sh
if [ "$SLOW" == "yes" ] ; then
echo "Setup date and time"
echo " Hit Enter to continue"
read testinput
fi
sh common-date-time.sh
if [ "$SLOW" == "yes" ] ; then
echo "Setup DNS server"
echo " Hit Enter to continue"
read testinput
fi
sh broker-dns.sh
if [ "$SLOW" == "yes" ] ; then
echo "Setup host dhcp setting"
echo " Hit Enter to continue"
read testinput
fi
sh broker-dhcp.sh
if [ "$SLOW" == "yes" ] ; then
echo "Set hostname"
echo " Hit Enter to continue"
read testinput
fi
sh broker-hostname.sh
if [ "$SLOW" == "yes" ] ; then
echo "Setup mongodb"
echo " Hit Enter to continue"
read testinput
fi
sh broker-mongodb.sh
if [ "$SLOW" == "yes" ] ; then
echo "Setup messaging"
echo " Hit Enter to continue"
read testinput
fi
sh broker-messaging.sh
if [ "$SLOW" == "yes" ] ; then
echo "Setup mcollective client"
echo " Hit Enter to continue"
read testinput
fi
sh broker-mcollective-client.sh
if [ "$SLOW" == "yes" ] ; then
echo "Setup the broker application"
echo " Hit Enter to continue"
read testinput
fi
sh broker-broker-app.sh
if [ "$SLOW" == "yes" ] ; then
echo "Setup plugins and accounts"
echo "And then the final test"
echo " Hit Enter to continue"
read testinput
fi
sh broker-plugins-accounts.sh