Merge "init-runonce - set image distro to "linux""

This commit is contained in:
Jenkins 2017-03-14 11:40:05 +00:00 committed by Gerrit Code Review
commit 40d0e39d0f

@ -8,6 +8,7 @@
IMAGE_URL=http://download.cirros-cloud.net/0.3.4/
IMAGE=cirros-0.3.4-x86_64-disk.img
IMAGE_NAME=cirros
IMAGE_TYPE=linux
EXT_NET_CIDR='10.0.2.0/24'
EXT_NET_RANGE='start=10.0.2.150,end=10.0.2.199'
EXT_NET_GATEWAY='10.0.2.1'
@ -50,7 +51,7 @@ if ! [ -f "${IMAGE}" ]; then
fi
echo Creating glance image.
openstack image create --disk-format qcow2 --container-format bare --public \
--file ./${IMAGE} ${IMAGE_NAME}
--property os_type=${IMAGE_TYPE} --file ./${IMAGE} ${IMAGE_NAME}
echo Configuring neutron.
openstack network create --external --provider-physical-network physnet1 \