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_action: CREATE
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_network_deployment_actions: []
tripleo_network_config_os_net_config_mappings: {}
tripleo_network_config_safe_defaults: true
tripleo_network_config_with_ansible: false
tripleo_network_config_template: templates/single_nic_vlan.j2

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

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      ubi8:
        ansible_python_interpreter: /usr/bin/python3
Example default playbook
- name: Converge
  hosts: all
  vars:
    tripleo_network_config_with_ansible: true
    tripleo_network_config_template: templates/standalone.j2
    tripleo_network_config_manage_service: false
    tripleo_network_config_hide_sensitive_logs: false
    local_mtu: 1500
    ctlplane_ip: 192.168.24.1
    ctlplane_subnet_cidr: 24
    ctlplane_host_routes: []
    ctlplane_dns_nameservers: []
    dns_search_domains: []
    neutron_public_interface_name: tap0
    deployed_server_port_map:
      control_virtual_ip:
        fixed_ips:
        - ip_address: 192.168.24.3
        network:
          tags:
          - 192.168.24.0/24
        subnets:
        - cidr: 192.168.24.0/24
      public_virtual_ip:
        fixed_ips:
        - ip_address: 192.168.24.1
        network:
          tags:
          - 192.168.24.0/24
        subnets:
        - cidr: 192.168.24.0/24
      standalone-ctlplane:
        fixed_ips:
        - ip_address: 192.168.24.1
        network:
          tags:
          - 192.168.24.0/24
        subnets:
        - cidr: 192.168.24.0/24
  roles:
  - role: tripleo_network_config