Role - tripleo-config

Role Documentation

Welcome to the “tripleo_config” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tripleo_config” role.

# All variables intended for modification should be placed in this file.

# All variables within this role should have a prefix of "tripleo_config"
tripleo_config_type: ini
tripleo_config_src: '{{ tripleo_config_type }}-config.j2'
tripleo_config_owner: root
tripleo_config_group: root
tripleo_config_mode: 0644
tripleo_config_overrides: {}
tripleo_config_remote_src: false

Molecule Scenarios

Molecule is being used to test the “tripleo_config” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: default

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      centos:
        ansible_python_interpreter: /usr/bin/python3
Example default playbook
- name: Converge
  hosts: all
  roles:
  - role: tripleo_config
    tripleo_config_dest: /tmp/test.ini

  - role: tripleo_config
    tripleo_config_dest: /tmp/test2.ini
    tripleo_config_overrides:
      testSection:
        test_option: var1