veza/ansible/roles/ovn/templates/alias.sh.j2
2025-12-03 22:56:50 +01:00

9 lines
754 B
Django/Jinja

# {{ ansible_managed }}
alias ovn-nbctl="/usr/bin/ovn-nbctl --db={{ ovn_central_northbound }}{{ (' -c /etc/ovn/server.crt -p /etc/ovn/server.key -C /etc/ovn/ca.crt') if ovn_ssl }}"
alias ovn-sbctl="/usr/bin/ovn-sbctl --db={{ ovn_central_southbound }}{{ (' -c /etc/ovn/server.crt -p /etc/ovn/server.key -C /etc/ovn/ca.crt') if ovn_ssl }}"
{% if ovn_ic_northbound is defined %}
alias ovn-ic-nbctl="/usr/bin/ovn-ic-nbctl --db={{ ovn_ic_northbound }}{{ (' -c /etc/ovn/server.crt -p /etc/ovn/server.key -C /etc/ovn/ca.crt') if ovn_ssl }}"
{% endif %}
{% if ovn_ic_southbound is defined %}
alias ovn-ic-sbctl="/usr/bin/ovn-ic-sbctl --db={{ ovn_ic_southbound }}{{ (' -c /etc/ovn/server.crt -p /etc/ovn/server.key -C /etc/ovn/ca.crt') if ovn_ssl }}"
{% endif %}