From de111158d29855d154c58c8eda2594b3f396e239 Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Thu, 19 Aug 2021 14:37:44 +0000 Subject: [PATCH] Define infra VMs for testing Used by CI to test infra VM functionality works. Change-Id: I21873b5a0bc480992a9f52881deb751ba857e4fe --- .../group_vars/infra-vms/ansible-python-interpreter | 3 +++ .../group_vars/infra-vms/network-interfaces | 12 ++++++++++++ etc/kayobe/inventory/host_vars/infra-vm-1 | 7 +++++++ etc/kayobe/inventory/infra-vms | 2 ++ etc/kayobe/network-allocation.yml | 4 ++-- 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 etc/kayobe/inventory/group_vars/infra-vms/ansible-python-interpreter create mode 100644 etc/kayobe/inventory/group_vars/infra-vms/network-interfaces create mode 100644 etc/kayobe/inventory/host_vars/infra-vm-1 create mode 100644 etc/kayobe/inventory/infra-vms diff --git a/etc/kayobe/inventory/group_vars/infra-vms/ansible-python-interpreter b/etc/kayobe/inventory/group_vars/infra-vms/ansible-python-interpreter new file mode 100644 index 0000000..54abbf2 --- /dev/null +++ b/etc/kayobe/inventory/group_vars/infra-vms/ansible-python-interpreter @@ -0,0 +1,3 @@ +--- +# Use a virtual environment for remote operations. +ansible_python_interpreter: "{{ virtualenv_path }}/kayobe/bin/python" diff --git a/etc/kayobe/inventory/group_vars/infra-vms/network-interfaces b/etc/kayobe/inventory/group_vars/infra-vms/network-interfaces new file mode 100644 index 0000000..015413d --- /dev/null +++ b/etc/kayobe/inventory/group_vars/infra-vms/network-interfaces @@ -0,0 +1,12 @@ +--- +############################################################################### +# Network interface definitions for the infra-vms group. + +# Overcloud provisioning network IP information. +# provision_oc_net_interface: +# provision_oc_net_bridge_ports: +# provision_oc_net_bond_slaves: + +############################################################################### +# Dummy variable to allow Ansible to accept this file. +workaround_ansible_issue_8743: yes diff --git a/etc/kayobe/inventory/host_vars/infra-vm-1 b/etc/kayobe/inventory/host_vars/infra-vm-1 new file mode 100644 index 0000000..3179497 --- /dev/null +++ b/etc/kayobe/inventory/host_vars/infra-vm-1 @@ -0,0 +1,7 @@ +--- + +# Number of vCPUs. +infra_vm_vcpus: 1 + +# Memory in MB. +infra_vm_memory_mb: "{{ 2 * 1024 }}" diff --git a/etc/kayobe/inventory/infra-vms b/etc/kayobe/inventory/infra-vms new file mode 100644 index 0000000..8767b1a --- /dev/null +++ b/etc/kayobe/inventory/infra-vms @@ -0,0 +1,2 @@ +[infra-vms] +infra-vm-1 diff --git a/etc/kayobe/network-allocation.yml b/etc/kayobe/network-allocation.yml index cb05f43..aa12640 100644 --- a/etc/kayobe/network-allocation.yml +++ b/etc/kayobe/network-allocation.yml @@ -1,5 +1,5 @@ ---- aio_ips: controller0: 192.168.33.3 - seed-hypervisor: 192.168.33.4 + infra-vm-1: 192.168.33.6 seed: 192.168.33.5 + seed-hypervisor: 192.168.33.4