forked from vietstacker/openstack-HA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
huongdanthuchien.txt
30 lines (23 loc) · 918 Bytes
/
huongdanthuchien.txt
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
if [ "$1" == "controller" ]; then
echo "$HOST_CTL" > $path_hostname
hostname -F $path_hostname
elif [ "$1" == "compute1" ]; then
echo "$HOST_COM1" > $path_hostname
hostname -F $path_hostname
elif [ "$1" == "compute2" ]; then
echo "$HOST_COM2" > $path_hostname
hostname -F $path_hostname
else
echocolor "Cau hinh hostname that bai"
echocolor "Cau hinh hostname that bai"
exit 1
fi
echo "NAME=ens160" >> /etc/sysconfig/network-scripts/ifcfg-ens160
nmcli con reload
nmcli con show
curl -O https://raw.githubusercontent.com/congto/openstack-HA/master/scripts/rabbitmq-bonding.sh
sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager
curl -O https://raw.githubusercontent.com/congto/openstack-HA/master/scripts/rabbitmq1-ipadd.sh && bash rabbitmq1-ipadd.sh
- Đổi tên connection
nmcli c modify "System ens160" connection.id ens160