openstack-ansible-os_neutron/templates/ovn-cli-options.j2
Dmitriy Rabotyagov 392f1a90ad Create an openrc for nb/sb clients
In order to connect to NB/SB leader it requires quite some parameters
to be passed to the CLI. To simplify that we define an environment variables
that are used as defaults once /root/ovnctl.rc is sourced.

Change-Id: Ia44829a48b4b73a81c82b79bc8898c1a95989aef
2024-03-28 09:56:22 +00:00

8 lines
617 B
Django/Jinja

export OVN_NB_DB="{{ neutron_ovn_nb_connection }}"
export OVN_SB_DB="{{ neutron_ovn_sb_connection }}"
{% if neutron_ovn_ssl | bool %}
export OVN_NBCTL_OPTIONS="--certificate {{ neutron_ovn_conf_dir ~ '/' ~ neutron_ovn_ssl_cert }} --private-key {{ neutron_ovn_conf_dir ~ '/' ~ neutron_ovn_ssl_key }} --ca-cert {{ neutron_ovn_conf_dir ~ '/' ~ neutron_ovn_ssl_ca_cert }}"
export OVN_SBCTL_OPTIONS="--certificate {{ neutron_ovn_conf_dir ~ '/' ~ neutron_ovn_ssl_cert }} --private-key {{ neutron_ovn_conf_dir ~ '/' ~ neutron_ovn_ssl_key }} --ca-cert {{ neutron_ovn_conf_dir ~ '/' ~ neutron_ovn_ssl_ca_cert }}"
{% endif %}