Closed nodje closed 9 months ago
To bring further details, now I'm using an inventory as in the https://github.com/redhat-cop/aap_utilities/tree/devel/roles/aap_setup_install example:
aap_setup_prep_inv_nodes:
automationcontroller:
- node1
- node2
automationedacontroller:
eda-test.staging:
database:
- db
automationhub:
automation.staging:
execution_nodes:
- ee1
- ee2
instance_group_bastion:
- ee1
- ee2
This works. Meaning, AFAIK, contrary to what the example shows at https://github.com/redhat-cop/aap_utilities/tree/devel/roles/aap_setup_install, controller/execution_nodes/database nodes needs to be list while EDA/automationhub need to be dict.
I guess issues come from https://github.com/redhat-cop/aap_utilities/blob/devel/roles/aap_setup_install/defaults/main.yml's eda_hostname
and ah_hostname
value
interesting, it would probably be best to make them all match if possible
They should all be dictionaries and they can all be dictionaries, in order to allow for host variables in the ini files (not the nicest way to do it, but rather common for setup.sh). The truth was and is in aap_setup_prepare
: "aap_setup_prep_inv_nodes
[...] a dictionary of dictionaries, the first level key is the inventory group name, the 2nd level key is the hostname with the value being its inventory host variables in INI-format".
I'll close both #196 and #197 with a documentation update.
using 2.3.0 on latest aap2.4-1.3
This is a minor issue I think:
I can't see what keys are missing really, I'm not sure what's different than with AutomationHub task which seats just above in the tasks/main.yml. The name should be fixed but appart from that I don't see what's amiss.
Here the inventory it generated and ran on:
variables for the setup_prepare: