Last active
January 29, 2016 09:06
-
-
Save mancdaz/e0033558ae286a98a531 to your computer and use it in GitHub Desktop.
new build test setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add cirros image | |
cd /tmp | |
wget http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img | |
glance image-create --container-format bare --disk-format qcow2 --file cirros-0.3.3-x86_64-disk.img --name cirros | |
# add trusty image | |
cd /tmp | |
wget http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img | |
glance image-create --container-format bare --disk-format qcow2 --file trusty-server-cloudimg-amd64-disk1.img --name trusty | |
# allow access to instances | |
neutron security-group-rule-create --protocol tcp --port-range-min 22 --port-range-max 22 --direction ingress default | |
neutron security-group-rule-create --protocol icmp --direction ingress default | |
# create networks | |
id=$(neutron net-create public --router:external|grep ' id '|cut -d '|' -f3) | |
neutron subnet-create public 192.168.93.0/24 --name public_subnet | |
neutron router-create router1 | |
neutron router-gateway-set router1 ${id} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment