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.

Scenario: default

Driver: docker
Example default playbook
- hosts: all
  name: Converge
  post_tasks:
  - include_role:
      name: tripleo-upgrade-hiera
      tasks_from: set.yml
    name: test tripleo-upgrade-hiera - add a first value
    vars:
      tripleo_upgrade_key: pacemaker_short_node_names_override
      tripleo_upgrade_value:
      - controller-0
  - include_role:
      name: tripleo-upgrade-hiera
      tasks_from: set.yml
    name: test tripleo-upgrade-hiera - add another value
    vars:
      tripleo_upgrade_key: mysql_short_node_names_override
      tripleo_upgrade_value:
      - controller-0
      - controller-1
  - include_role:
      name: tripleo-upgrade-hiera
      tasks_from: set.yml
    name: test tripleo-upgrade-hiera - update a value
    vars:
      tripleo_upgrade_key: mysql_short_node_names_override
      tripleo_upgrade_value:
      - controller-1
  - include_role:
      name: tripleo-upgrade-hiera
      tasks_from: remove.yml
    name: test tripleo-upgrade-hiera - remove a value
    vars:
      tripleo_upgrade_key: pacemaker_short_node_names_override
  - include_role:
      name: tripleo-upgrade-hiera
      tasks_from: remove-all.yml
    name: test tripleo-upgrade-hiera - remove all values
  roles:
  - role: tripleo-upgrade-hiera