Refactor a bit the inventory for edpm case

01-site:
Ensure we get a consistent format (yaml)

02-computes + host_vars/localhost:
Ensure the "ansible_connection" parameter is passed from within the
inventory, so that it's more obvious. Until now, we may just edit the
02-computes to inject our remote hosts, and not get what we want since
ansible will just use the local node instead of connecting to the
remotes.

Change-Id: I33b07d615beafecd5fe97cbca54c6a296965af8f
This commit is contained in:
Cédric Jeanneret 2023-01-05 13:32:43 +01:00 committed by Cedric Jeanneret
parent d145e95b6f
commit 976741b320
3 changed files with 15 additions and 13 deletions

View File

@ -1,11 +1,14 @@
# allovercloud group is needed by tripleo_ssh_known_hosts
[allovercloud:children]
overcloud
# primary_role_name used by some plays to target the primary role first
[primary_role_name:children]
[overcloud:children]
Compute
[Compute]
---
all:
children:
# allovercloud group is needed by tripleo_ssh_known_hosts
allovercloud:
children:
overcloud:
# primary_role_name used by some plays to target the primary role first
primary_role_name:
children:
overcloud:
children:
Compute:
Compute:

View File

@ -3,6 +3,7 @@ Compute:
# Add additional computes here, and optionally drop localhost.
# Add host vars under the host_vars dir.
localhost:
ansible_connection: local
vars:
service_net_map:
nova_api_network: internal_api

View File

@ -1,6 +1,4 @@
---
ansible_connection: local
ctlplane_ip: 192.168.24.100
internal_api_ip: 192.168.24.2
tenant_ip: 192.168.24.2