redhat-cop / aap_utilities

Ansible Collection for automated deployment of AAP and other objects for general use
https://galaxy.ansible.com/infra/aap_utilities
GNU General Public License v3.0
80 stars 49 forks source link

Ability to define Instance Groups during aap_setup_install #180

Closed nodje closed 1 year ago

nodje commented 1 year ago

I'm using 2.2.4

I can't find the ability to define an Instance Group.

Using the "traditional" inventory definition-> setup.sh pre-flight->setup.sh, it's possible to define for instance a group:

[isolated_node_bastion]
node1
node2

Right now I can only use

execution_nodes:
    - execution-1.example
    - execution-2.example

to add dedicated execution node.

But there doesn't seem to be a way to assign these execution_nodes to a specific Instance Group

mondherGL commented 1 year ago

same issue

sean-m-sullivan commented 1 year ago

Right now Any groups keys defined are created https://github.com/redhat-cop/aap_utilities/blob/c1b8261c00af30645c333c34648a8e84f817c1c3/roles/aap_setup_prepare/templates/inventory.j2#L3C21-L3C45

This is a generated INI file This is one using vars And this the instance diagram to accompany the above two files image

As per the Installer Mesh Documentation If the name of a group of nodes begins with instancegroup, the installer recognises it as an instance group and adds it to the Ansible Automation Platform user interface.

nodje commented 1 year ago

thanks a bunch @sean-m-sullivan An example is all we needed. I guess aap_setup_prepare/README.md is short of this use case and somehow we didn't figure it out. I wasn't aware of the book, congrats! Will try to get a copy.

sean-m-sullivan commented 1 year ago

yes, we need to updated the readme on this, Going to reopen this issue as this is the case, and sorry it took me a bit to come back to it. This is a case where we thought it was in the readme, but it definitely is not.