From 14567e0c3c0a67d26ece5040f0663a0d02f3f43f Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Wed, 26 Sep 2018 12:29:13 +0100 Subject: [PATCH] MNAIO: Remove mnaio_hosts group and use vm_hosts only The mnaio_hosts group is redundant. We switch to just using the vm_hosts group instead. Change-Id: I854befd283b62c98e956a5e677ca9d7dbd33416b --- multi-node-aio/build.sh | 2 +- multi-node-aio/playbooks/deploy-vms.yml | 1 + .../playbooks/group_vars/{mnaio_hosts.yml => vm_hosts.yml} | 0 multi-node-aio/playbooks/inventory/hosts | 7 ------- multi-node-aio/playbooks/setup-host.yml | 2 +- 5 files changed, 3 insertions(+), 9 deletions(-) rename multi-node-aio/playbooks/group_vars/{mnaio_hosts.yml => vm_hosts.yml} (100%) diff --git a/multi-node-aio/build.sh b/multi-node-aio/build.sh index f065983d..afe4eece 100755 --- a/multi-node-aio/build.sh +++ b/multi-node-aio/build.sh @@ -19,7 +19,7 @@ source bootstrap.sh source ansible-env.rc -ansible mnaio_hosts \ +ansible vm_hosts \ -i ${MNAIO_INVENTORY:-"playbooks/inventory"} \ -m pip \ -a "name=netaddr" diff --git a/multi-node-aio/playbooks/deploy-vms.yml b/multi-node-aio/playbooks/deploy-vms.yml index bcc882cd..8d5499bc 100644 --- a/multi-node-aio/playbooks/deploy-vms.yml +++ b/multi-node-aio/playbooks/deploy-vms.yml @@ -226,6 +226,7 @@ - "{{ playbook_dir }}/vars/{{ ansible_os_family | lower }}.yml" tags: - always + - name: Start the VM virt: name: "{{ hostvars[item]['server_hostname'] }}" diff --git a/multi-node-aio/playbooks/group_vars/mnaio_hosts.yml b/multi-node-aio/playbooks/group_vars/vm_hosts.yml similarity index 100% rename from multi-node-aio/playbooks/group_vars/mnaio_hosts.yml rename to multi-node-aio/playbooks/group_vars/vm_hosts.yml diff --git a/multi-node-aio/playbooks/inventory/hosts b/multi-node-aio/playbooks/inventory/hosts index fa3538d5..a859890e 100644 --- a/multi-node-aio/playbooks/inventory/hosts +++ b/multi-node-aio/playbooks/inventory/hosts @@ -27,13 +27,6 @@ swift3 ansible_host=10.0.236.142 [vm_hosts] mnaio1 -################################## PXE HOSTS ################################## - -# The group "mnaio_hosts" is used to define all host machines that will serve -# the purpose of running an MNAIO test environment. -[mnaio_hosts] -mnaio1 - # The group "pxe_hosts" is used to setup all systems that will be responsible # for PXE boot. This will install all of the needed capabilities to TFTP serve # system images. diff --git a/multi-node-aio/playbooks/setup-host.yml b/multi-node-aio/playbooks/setup-host.yml index f9f7a1e7..213aa204 100644 --- a/multi-node-aio/playbooks/setup-host.yml +++ b/multi-node-aio/playbooks/setup-host.yml @@ -14,7 +14,7 @@ # limitations under the License. - name: Gather facts - hosts: mnaio_hosts + hosts: vm_hosts gather_facts: "{{ gather_facts | default(true) }}" environment: "{{ deployment_environment_variables | default({}) }}" tags: