Going forward, many of the filters and code that used to be in ansible
core were moved to collections. We use the ipaddr filter in a few places
so in order to support newer versions, we need to try to load the
collection version first before falling back to the legacy one in
ansible <=2.9
Change-Id: If1d273da61041fa4b7b9f4430264acda1d3841e8
Sorting the enabled_services list so we can have idempotent hieradata
where the content doesn't change between Ansible runs of the
tripleo_all_nodes_data action plugin.
Change-Id: I8f54265dbadf21da6badd690f5cb123b549cf48c
This is the proper way to add another element to a list. Otherwise
the plugin would fail if a string was trying to be concatenated to
a list.
Change-Id: Ieba3396bbe89e2ad1de7ad842b31f3ad092ff36f
Closes-Bug: #1871228
This patch adds an action plugin to render the all_nodes group_vars for
the overcloud. This plugin will produce the same json structure as the
all_nodes.j2 template in the tripleo-heiradata role. Once
deploy_steps_playbook.yaml is migrated over to use the new action
plugin, the all_nodes.j2 template can be removed.
At scale, the template was taking an unusual amount of time to render.
Switching to native python with the action plugin results in improved
performance. In a 150 node environment, using the action plugin dropped
the render time from 7 minutes to 30 seconds.
Using an action plugin will also allow more easier unit testing (to be
forthcoming), and also add the opportunity to use debug statements to
show errors.
Change-Id: I92113589b98d7c1f9c05e1ea0938a03d95b7dd15