feat: Add PUBLIC_IP and SSH_PORT to nm-bootstrap-script.sh execution
Change-Id: I23fdfd9a13fd5978930c78b77795a35b5f73ad4b
This commit is contained in:
parent
6258ce4048
commit
83f4c3287c
@ -3,7 +3,7 @@ echo "Master pre-install script\n"
|
||||
|
||||
sudo hostnamectl set-hostname "$variables_PA_JOB_NAME"
|
||||
sudo -H -u ubuntu bash -c 'wget https://opendev.org/nebulous/sal-scripts/raw/branch/master/onm/nm-bootstrap-script.sh && chmod +x nm-bootstrap-script.sh'
|
||||
sudo -H -u ubuntu bash -c "./nm-bootstrap-script.sh 'CREATE' 'MASTER' $APPLICATION_ID 158.39.201.249";
|
||||
sudo -H -u ubuntu bash -c "./nm-bootstrap-script.sh 'CREATE' 'MASTER' $APPLICATION_ID 158.39.201.249 $PUBLIC_IP $SSH_PORT";
|
||||
echo ""
|
||||
echo ""
|
||||
sleep 60
|
||||
|
@ -2,7 +2,7 @@
|
||||
echo "Worker pre-install script"
|
||||
sudo hostnamectl set-hostname "$variables_PA_JOB_NAME"
|
||||
sudo -H -u ubuntu bash -c 'wget https://opendev.org/nebulous/sal-scripts/raw/branch/master/onm/nm-bootstrap-script.sh && chmod +x nm-bootstrap-script.sh'
|
||||
sudo -H -u ubuntu bash -c "./nm-bootstrap-script.sh 'CREATE' 'WORKER' $APPLICATION_ID 158.39.201.249";
|
||||
sudo -H -u ubuntu bash -c "./nm-bootstrap-script.sh 'CREATE' 'WORKER' $APPLICATION_ID 158.39.201.249 $PUBLIC_IP $SSH_PORT";
|
||||
|
||||
WIREGUARD_VPN_IP=`ip a | grep wg | grep inet | awk '{print $2}' | cut -d'/' -f1`;
|
||||
echo "WIREGUARD_VPN_IP= $WIREGUARD_VPN_IP";
|
||||
|
Loading…
x
Reference in New Issue
Block a user