Commit 3dc9d302 authored by Cédric BRINER's avatar Cédric BRINER

done

parent 9867964e
#!/bin/bash
DIRNAME=$(dirname $0)
echo "scp patron-debian-9-1"
scp ${DIRNAME}/ug-master2instance patron-debian-9-1:/usr/local/bin
slogin patron-debian-9-1 chmod +x /usr/local/bin/ug-master2instance
......@@ -218,6 +218,16 @@ master-2-vm <new_hostname> <minion_id>\
EOF
}
function close_it
{
pb "close_it"
pb " - rm /usr/local/bin/ug-master2instance"
rm /usr/local/bin/ug-master2instance
pb " - disable ssh."
systemctl disable ssh | tab 3
pb " - stop ssh."
systemctl stop ssh | tab 3
}
new_hostname="$1"
minion_id="$2"
......@@ -230,13 +240,13 @@ ipv6_gateway="$8"
lip_dns="$9"
test_prerequesite
echo ""
clean_up
echo ""
change_hostname
echo ""
change_vg_name
exit
echo ""
change_network
pb "rm /usr/local/bin/master-2-instance"
rm /usr/local/bin/master-2-instance
pb "stop and disable ssh"
systemctl disable ssh
systemctl stop ssh
echo ""
close_it
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment