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_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
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

Driver: delegated
Molecule Options
managed: false
login_cmd_template: >-
  ssh
  -o UserKnownHostsFile=/dev/null
  -o StrictHostKeyChecking=no
  -o Compression=no
  -o TCPKeepAlive=yes
  -o VerifyHostKeyDNS=no
  -o ForwardX11=no
  -o ForwardAgent=no
  {instance}
ansible_connection_options:
  ansible_connection: ssh
Molecule Inventory
hosts:
  all:
    hosts:
      instance:
        ansible_host: localhost
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
    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
    deployed_server_port_map:
      control_virtual_ip:
        fixed_ips:
        - ip_address: 203.0.113.3
        network:
          tags:
          - 203.0.113.0/24
        subnets:
        - cidr: 203.0.113.0/24
      public_virtual_ip:
        fixed_ips:
        - ip_address: 203.0.113.1
        network:
          tags:
          - 203.0.113.0/24
        subnets:
        - cidr: 203.0.113.0/24
      standalone-ctlplane:
        fixed_ips:
        - ip_address: 203.0.113.1
        network:
          tags:
          - 203.0.113.0/24
        subnets:
        - cidr: 203.0.113.0/24
  roles:
  - role: tripleo_network_config