392f1a90ad
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
8 lines
617 B
Django/Jinja
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 %}
|