Role - tripleo_ovn_cluster

Role Documentation

Welcome to the “tripleo_ovn_cluster” role documentation.

Role Defaults

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

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

# All variables within this role should have a prefix of "tripleo_ovn_cluster"

tripleo_ovn_cluster_config_basedir: /var/lib/config-data/ansible-generated/ovn
tripleo_ovn_cluster_network: ctlplane

tripleo_ovn_cluster_nb_db_protocol: "{{ enable_internal_tls | bool | ternary('ssl',\
  \ 'tcp') }}"
tripleo_ovn_cluster_nb_db_port: 6641
tripleo_ovn_cluster_nb_local_port: 6643
tripleo_ovn_cluster_nb_remote_port: 6643
tripleo_ovn_cluster_nb_election_timer: 10
tripleo_ovn_cluster_nb_ssl_key: /etc/pki/tls/private/ovn_dbs.key
tripleo_ovn_cluster_nb_ssl_cert: /etc/pki/tls/certs/ovn_dbs.crt
tripleo_ovn_cluster_nb_ssl_ca_cert: /etc/ipa/ca.crt

tripleo_ovn_cluster_sb_db_protocol: "{{ enable_internal_tls | bool | ternary('ssl',\
  \ 'tcp') }}"
tripleo_ovn_cluster_sb_db_port: 6642
tripleo_ovn_cluster_sb_local_port: 6644
tripleo_ovn_cluster_sb_remote_port: 6644
tripleo_ovn_cluster_sb_election_timer: 16
tripleo_ovn_cluster_sb_ssl_key: /etc/pki/tls/private/ovn_dbs.key
tripleo_ovn_cluster_sb_ssl_cert: /etc/pki/tls/certs/ovn_dbs.crt
tripleo_ovn_cluster_sb_ssl_ca_cert: /etc/ipa/ca.crt

tripleo_ovn_cluster_northd_protocol: "{{ enable_internal_tls | bool | ternary('ssl',\
  \ 'tcp') }}"
tripleo_ovn_cluster_northd_ssl_key: /etc/pki/tls/private/ovn_dbs.key
tripleo_ovn_cluster_northd_ssl_cert: /etc/pki/tls/certs/ovn_dbs.crt
tripleo_ovn_cluster_northd_ssl_ca_cert: /etc/ipa/ca.crt

Molecule Scenarios

Molecule is being used to test the “tripleo_ovn_cluster” 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
    vars:
      ctlplane_ip: 192.168.24.2
      enable_internal_tls: true
      ovn_dbs_bootstrap_node_ip: 10.0.0.20
      ovn_dbs_node_ips: 10.0.0.20,10.0.0.30,10.0.0.40
Example default playbook
- name: Converge
  hosts: all
  roles:
  - role: tripleo_ovn_cluster