Create vlan985 subnet like in gearshift

This commit is contained in:
Egon Rijpkema 2018-07-19 15:42:19 +02:00
parent b4d9eed775
commit c49db46a4d

View File

@ -15,8 +15,11 @@
- name: post install configuration - name: post install configuration
command: docker exec -i keystone.service bash -c "source /root/admin-openrc.sh && {{ item }}" command: docker exec -i keystone.service bash -c "source /root/admin-openrc.sh && {{ item }}"
with_items: with_items:
- openstack network create --share --external --provider-physical-network provider --provider-network-type flat provider - openstack network create --share --external --provider-physical-network provider --provider-network-type vlan --provider-segment 985 vlan985
- openstack network set --external provider - >
openstack subnet create --subnet-range 172.23.59.0/22 --gateway 172.23.59.1
--network vlan985 --allocation-pool start=172.23.59.75,end=172.23.59.100
--dns-nameserver 172.23.32.248 vlan985_subnet
- openstack flavor create --id 0 --vcpus 1 --ram 64 --disk 1 m1.nano - openstack flavor create --id 0 --vcpus 1 --ram 64 --disk 1 m1.nano
- openstack keypair create --public-key /root/id_rsa.pub adminkey - openstack keypair create --public-key /root/id_rsa.pub adminkey