-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathupdateNodes.sh
36 lines (27 loc) · 1.54 KB
/
updateNodes.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
#!/bin/bash
touch vars
rm vars
# MariaDB Node
MARIADB=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.cloudapp.net -p 50181 "hostname --ip-address"`
echo "export MARIADB=${MARIADB}" >> vars
# Redis Node
REDIS=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.cloudapp.net -p 59733 "hostname --ip-address"`
echo "export REDIS=${REDIS}" >> vars
# Mongo Node
MONGO=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.cloudapp.net -p 50888 "hostname --ip-address"`
echo "export MONGO=${MONGO}" >> vars
# Webservice1 Node
WEBSERVICE1=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.cloudapp.net -p 5677 "hostname --ip-address"`
echo "export WEBSERVICE1=${WEBSERVICE1}" >> vars
# Webservice2 Node
WEBSERVICE2=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.cloudapp.net -p 49483 "hostname --ip-address"`
echo "export WEBSERVICE2=${WEBSERVICE2}" >> vars
# HAProxy Node
HAPROXY=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.cloudapp.net -p 60724 "hostname --ip-address"`
echo "export HAPROXY=${HAPROXY}" >> vars
# Iservice1 Node
ISERVICE1=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.cloudapp.net -p 50188 "hostname --ip-address"`
echo "export ISERVICE1=${ISERVICE1}" >> vars
# Iservice2 Node
ISERVICE2=`sshpass -p ${ssh_pass} ssh -o StrictHostKeyChecking=no vetmanager@vetmanager.cloudapp.net -p 5999 "hostname --ip-address"`
echo "export ISERVICE2=${ISERVICE2}" >> vars