WIP: Add seed and seed-hypervisor hosts

Used for testing seed VM provisioning.

Change-Id: I2c96a91b9c55480301d543850d58982d74f2ebfb
This commit is contained in:
Mark Goddard 2017-12-05 15:44:41 +00:00
parent 47ff06706b
commit 9fd0e8f657
7 changed files with 27 additions and 10 deletions

View File

@ -3,9 +3,12 @@
# Network interface definitions for the controller group.
# Controller interface on all-in-one network.
aio_interface: breth1
# Use eth1 if it exists, otherwise the bridge will have no ports.
aio_bridge_ports: "{{ ['eth1'] if 'ansible_eth1' in hostvars[inventory_hostname] else [] }}"
aio_interface: breth0
aio_bridge_ports:
- eth0
# Route via the seed-hypervisor to the outside world.
aio_gateway: 192.168.33.4
###############################################################################
# Dummy variable to allow Ansible to accept this file.

View File

@ -0,0 +1,3 @@
---
aio_interface: braio
aio_bridge_ports: []

View File

@ -2,10 +2,12 @@
###############################################################################
# Network interface definitions for the seed group.
# Seed interface on all-in-one network.
aio_interface: breth1
# Use eth1 if it exists, otherwise the bridge will have no ports.
aio_bridge_ports: "{{ ['eth1'] if 'ansible_eth1' in hostvars[inventory_hostname] else [] }}"
aio_interface: eth0
# Route via the seed-hypervisor to the outside world.
# FIXME: Circular reference between seed & seed-hypervisor?
#aio_gateway: "{{ 'aio' | net_ip('localhost') }}"
aio_gateway: 192.168.33.4
###############################################################################
# Dummy variable to allow Ansible to accept this file.

View File

@ -3,14 +3,13 @@
localhost ansible_connection=local
[seed-hypervisor]
# Add a seed hypervisor node here if required. This host will run a seed node
# Virtual Machine.
seed-hypervisor
[seed]
seed
[controllers]
controller0
#controller0
[compute:children]
controllers

View File

@ -55,6 +55,7 @@
# URL of Ironic deployment kernel image to download.
#ipa_kernel_upstream_url:
ipa_kernel_upstream_url: "https://tarballs.openstack.org/ironic-python-agent/tinyipa/files/tinyipa-stable-queens.vmlinuz"
# URL of checksum of Ironic deployment kernel image.
#ipa_kernel_checksum_url:
@ -67,6 +68,7 @@
# URL of Ironic deployment ramdisk image to download.
#ipa_ramdisk_upstream_url:
ipa_ramdisk_upstream_url: "https://tarballs.openstack.org/ironic-python-agent/tinyipa/files/tinyipa-stable-queens.gz"
# URL of checksum of Ironic deployment ramdisk image.
#ipa_ramdisk_checksum_url:

View File

@ -0,0 +1,7 @@
---
# Don't build an IPA deployment image, instead download upstream images.
create_ipa_image: false
download_ipa: true
# Don't build a disk image. It takes time and can be unreliable.
use_cirros: true

View File

@ -1,4 +1,5 @@
---
aio_ips:
controller0: 192.168.33.3
seed-hypervisor: 192.168.33.4
seed: 192.168.33.5