Role - tripleo-ha-wrapper¶
Role Documentation¶
Welcome to the “tripleo_ha_wrapper” role documentation.
Role Defaults¶
This section highlights all of the defaults and variables set within the “tripleo_ha_wrapper” role.
# All variables intended for modification should place placed in this file.
# All variables within this role should have a prefix of "tripleo_ha_wrapper"
tripleo_ha_wrapper_debug: '{{ (ansible_verbosity | int) >= 2 | bool }}'
tripleo_ha_wrapper_hide_sensitive_logs: true
tripleo_ha_wrapper_config_basedir: /var/lib/config-data/puppet-generated
tripleo_ha_wrapper_config_suffix: .previous_run
tripleo_ha_wrapper_puppet_modulepath: /etc/puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules
tripleo_ha_wrapper_pcmk_restart_script: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh
Molecule Scenarios¶
Molecule is being used to test the “tripleo_ha_wrapper” 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_ha_wrapper
vars:
tripleo_ha_wrapper_service_name: foo
tripleo_ha_wrapper_resource_name: foo
tripleo_ha_wrapper_bundle_name: foo-bundle
tripleo_ha_wrapper_resource_state: Master
tripleo_ha_wrapper_puppet_execute: 'notify{ foo: }'
tripleo_ha_wrapper_puppet_tags: file
tripleo_ha_wrapper_puppet_config_volume: haproxy