Role - tripleo_network_config

Role Documentation

Welcome to the “tripleo_network_config” role documentation.

Role Defaults

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

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

# All variables within this role should have a prefix of "tripleo_network_config"
tripleo_network_config_update: false
tripleo_network_config_async_poll: 3
tripleo_network_config_async_timeout: 300
tripleo_network_config_bridge_name: br-ex
tripleo_network_config_debug: '{{ (ansible_verbosity | int) >= 2 | bool }}'
tripleo_network_config_hide_sensitive_logs: true
tripleo_network_config_interface_name: nic1
tripleo_network_config_manage_service: true
tripleo_network_config_nmstate: false
tripleo_network_config_os_net_config_mappings: {}
tripleo_network_config_safe_defaults: true
tripleo_network_config_with_ansible: true
tripleo_network_config_template: templates/single_nic_vlans/single_nic_vlans.j2
tripleo_network_config_override: {}

Molecule Scenarios

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

Scenario: default

Molecule Inventory
hosts:
  all:
    hosts:
      instance:
        ansible_host: localhost
Example default playbook
- name: Converge
  hosts: all
  vars:
    tripleo_network_config_template: templates/standalone.j2
    tripleo_network_config_manage_service: false
    tripleo_network_config_hide_sensitive_logs: false
    ctlplane_mtu: 1500
    ctlplane_ip: 203.0.113.1
    ctlplane_subnet_cidr: 24
    ctlplane_host_routes: []
    ctlplane_dns_nameservers: []
    dns_search_domains: []
    neutron_public_interface_name: dummy0
    net_vip_map:
      ctlplane: 203.0.113.3
      ctlplane_subnet: 203.0.113.0/24
      ctlplane_uri: 203.0.113.3
    vip_port_map:
      external:
        ip_address: 203.0.113.1
        ip_address_uri: 203.0.113.1
        ip_subnet: 203.0.113.0/24
  roles:
  - role: tripleo_network_config