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
1 changed files with 5 additions and 2 deletions

View File

@ -15,8 +15,11 @@
- name: post install configuration
command: docker exec -i keystone.service bash -c "source /root/admin-openrc.sh && {{ item }}"
with_items:
- openstack network create --share --external --provider-physical-network provider --provider-network-type flat provider
- openstack network set --external provider
- openstack network create --share --external --provider-physical-network provider --provider-network-type vlan --provider-segment 985 vlan985
- >
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 keypair create --public-key /root/id_rsa.pub adminkey