File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
cloudify/fortios-mini-poc Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- fos_image : ' fos54 '
1
+ fos_image : ' fos56 '
2
2
fos_flavor : ' m1.small'
3
3
ub_image : ' Trusty x86_64'
4
4
ub_flavor : ' m1.small'
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ parameters:
9
9
fosimage :
10
10
type : string
11
11
description : Fortios image
12
- default : " fos54 "
12
+ default : " fos56 "
13
13
ubimage :
14
14
type : string
15
15
description : Ubuntu image
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if [ -x $OS_AUTH_URL ]; then
25
25
. ~ /nova.rc
26
26
fi
27
27
# Push image
28
- openstack image show " fos54 " > /dev/null 2>&1 || openstack image create --disk-format qcow2 --container-format bare --public " fos54 " --file fortios.qcow2
28
+ openstack image show " fos56 " > /dev/null 2>&1 || openstack image create --disk-format qcow2 --container-format bare --public " fos56 " --file fortios.qcow2
29
29
30
30
31
31
# Create mgmt network for neutron for tenant VMs
61
61
fi
62
62
63
63
64
- if (nova show fos54 > /dev/null 2>&1 ); then
65
- echo " fos54 already installed"
64
+ if (nova show fos56 > /dev/null 2>&1 ); then
65
+ echo " fos56 already installed"
66
66
else
67
67
neutron port-show left1 > /dev/null 2>&1 || neutron port-create left --port-security-enabled=False --fixed-ip ip_address=10.40.40.254 --name left1
68
68
neutron port-show right1 > /dev/null 2>&1 || neutron port-create right --port-security-enabled=False --fixed-ip ip_address=10.20.20.254 --name right1
69
69
LEFTPORT=` neutron port-show left1 -F id -f value`
70
70
RIGHTPORT=` neutron port-show right1 -F id -f value`
71
- nova boot --image " fos54 " fos54 --config-drive=true --key-name default --security-group default --flavor m1.small --user-data fos-user-data.txt --nic net-name=mgmt --nic port-id=$LEFTPORT --nic port-id=$RIGHTPORT
71
+ nova boot --image " fos56 " fos56 --config-drive=true --key-name default --security-group default --flavor m1.small --user-data fos-user-data.txt --nic net-name=mgmt --nic port-id=$LEFTPORT --nic port-id=$RIGHTPORT
72
72
FLOAT_IP=" $( nova floating-ip-create | grep ext_net | awk -F " |" ' { print $3}' ) "
73
- while [ $( nova list | grep fos54 | awk -F " |" ' {print $4}' ) == " BUILD" ]; do
73
+ while [ $( nova list | grep fos56 | awk -F " |" ' {print $4}' ) == " BUILD" ]; do
74
74
sleep 4
75
75
done
76
- nova floating-ip-associate fos54 $FLOAT_IP
76
+ nova floating-ip-associate fos56 $FLOAT_IP
77
77
fi
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ juju add-model mitaka
9
9
juju deploy openstack-nonest.yaml
10
10
# juju-wait last version was not test with python2 !!
11
11
# Move to python3
12
- sudo apt install python3-pip
12
+ sudo apt -y install python3-pip
13
13
sudo -H pip3 install juju-wait
14
14
echo " waiting for deployment to complete can be 1hour"
15
15
python3 /usr/local/bin/juju-wait -v
You can’t perform that action at this time.
0 commit comments