keepalived-formula/keepalived/files/default/keepalived.conf.tmpl.jinja

11 lines
470 B
Django/Jinja

########################################################################
# File managed by Salt at <{{ source }}>.
# Your changes will be overwritten.
########################################################################
{%- from "keepalived/macro.jinja" import print_config %}
{%- set sections = ['global_defs', 'vrrp_script', 'vrrp_instance', 'virtual_server'] %}
{%- for section in sections %}
{{ print_config({ section: config[section]|d({}) }) }}
{%- endfor %}