Role - tripleo-hosts-entries

Role Documentation

Welcome to the “tripleo-hosts-entries” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tripleo-hosts-entries” role.

tripleo_hosts_entries_debug: false
tripleo_hosts_entries_extra_hosts_entries: ''
tripleo_hosts_entries_hosts_path: /etc/hosts
tripleo_hosts_entries_undercloud_hosts_entries: ''
tripleo_hosts_entries_vip_hosts_entries: ''

Role Variables: main.yml

null
...

Molecule Scenarios

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

Scenario: default

Driver: docker
Molecule Inventory
hosts:
  all:
    children:
      overcloud:
        hosts:
          centos7:
            ctlplane_ip: 192.168.24.2
            hostname_resolve_network: ctlplane
            internal_api_ip: 172.17.0.2
          centos8:
            ctlplane_ip: 192.168.24.1
            hostname_resolve_network: ctlplane
            internal_api_ip: 172.17.0.1
    vars:
      cloud_domain: localdomain
      networks:
        InternalApi:
          name_lower: internal_api
        ctlplane:
          name_lower: ctlplane
      role_networks:
      - ctlplane
      - InternalApi
      tripleo_hosts_entries_extra_hosts_entries: []
      tripleo_hosts_entries_hosts_path: /tmp/hosts
      tripleo_hosts_entries_undercloud_hosts_entries: []
      tripleo_hosts_entries_vip_hosts_entries: []
Example default playbook
- hosts: all
  name: Converge
  roles:
  - role: tripleo-hosts-entries