configpolicy/roles/keepalived/templates/keepalived.conf.j2

25 lines
553 B
Django/Jinja

{#- vim: set sw=3 sts=3 ts=3 et : -#}
! Configuration File for keepalived
{% if keepalived_global_defs|d %}
global_defs {
{{ keepalived_global_defs | indent(width=3, first=true) }}
}
{% endif %}
{% if vrrp_track_process|d %}
{% for name, config in vrrp_track_process | items %}
vrrp_track_process {{ name }} {
{{ config | indent(width=4, first=true) }}
}
{% endfor %}
{% endif %}
{% if vrrp_instance|d %}
{% for name, config in vrrp_instance | items %}
vrrp_instance {{ name }} {
{{ config | indent(width=4, first=true) }}
}
{% endfor %}
{% endif %}