Role - tripleo-upgrade-hiera¶
Role Documentation¶
Welcome to the “tripleo_upgrade_hiera” role documentation.
Role Defaults¶
This section highlights all of the defaults and variables set within the “tripleo_upgrade_hiera” role.
tripleo_upgrade_hiera_file: /etc/puppet/hieradata/upgrade.json
Molecule Scenarios¶
Molecule is being used to test the “tripleo_upgrade_hiera” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.
- Driver: podman
Scenario: default¶
Molecule Inventory¶
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
Example default playbook¶
- name: Converge
hosts: all
roles:
- role: tripleo_upgrade_hiera
post_tasks:
- name: test tripleo_upgrade_hiera - add a first value
include_role:
name: tripleo_upgrade_hiera
tasks_from: set.yml
vars:
tripleo_upgrade_key: pacemaker_short_node_names_override
tripleo_upgrade_value:
- controller-0
- name: test tripleo_upgrade_hiera - add another value
include_role:
name: tripleo_upgrade_hiera
tasks_from: set.yml
vars:
tripleo_upgrade_key: mysql_short_node_names_override
tripleo_upgrade_value:
- controller-0
- controller-1
- name: test tripleo_upgrade_hiera - update a value
include_role:
name: tripleo_upgrade_hiera
tasks_from: set.yml
vars:
tripleo_upgrade_key: mysql_short_node_names_override
tripleo_upgrade_value:
- controller-1
- name: test tripleo_upgrade_hiera - remove a value
include_role:
name: tripleo_upgrade_hiera
tasks_from: remove.yml
vars:
tripleo_upgrade_key: pacemaker_short_node_names_override
- name: test tripleo_upgrade_hiera - remove all values
include_role:
name: tripleo_upgrade_hiera
tasks_from: remove-all.yml