kayobe/kayobe
Mark Goddard 8dc7ba7889 Use host vars files for kolla ansible inventory
Kayobe writes out several host variables to the Kolla ansible inventory
files, etc/kolla/inventory/seed and etc/kolla/inventory/overcloud. These
include ansible_host, and network interfaces such as api_interface,
ironic_dnsmasq_interface, etc.

In Ansible, these should have a higher precedence than the kolla ansible
group variables in ansible/group_vars/all.yml that set the defaults.
However, in Ansible 2.4+, if the host has the same name as a group that
it is in, the group variables now take precedence, meaning that it is
not possible to override them.

This was observed when using the kayobe-config-dev repo for testing,
where the seed host is in the seed group.

Admittedly ansible does tell you not to do this: [WARNING]:
Found both group and host with same name: localhost

The solution used here is to use a separate host_vars file for each
host. Alternatively we could enforce that hostnames and groups do not
overlap.

Change-Id: I349c8279d85a591689ac8108bce14d96889440fe
Story: 2004418
Task: 28065
2018-12-20 17:03:16 +00:00
..
cli Add commands to enable and disable the serial console 2018-11-07 15:35:47 +00:00
cmd Support encryption of configuration using Ansible Vault 2017-04-20 14:30:02 +01:00
tests Add commands to enable and disable the serial console 2018-11-07 15:35:47 +00:00
__init__.py Add kayobe python module with CLI 2017-02-28 16:17:54 +00:00
ansible.py Fix use of --ask-vault-pass argument 2018-11-05 18:12:36 +00:00
exception.py Support installing galaxy roles from kayobe-config 2018-05-21 16:00:57 +01:00
kolla_ansible.py Use host vars files for kolla ansible inventory 2018-12-20 17:03:16 +00:00
utils.py Fix galaxy role upgrade 2017-09-14 14:43:42 +01:00
vault.py Fix use of --ask-vault-pass argument 2018-11-05 18:12:36 +00:00
version.py Build release notes using reno 2018-05-04 15:11:23 +01:00