keepalived-formula/keepalived/files/default/keepalived.conf.tmpl.jinja
Ricardo Klein 45e3261e53 feat(vrrp_sync_group): added option for vrrp_sync_group
* Changed the template to include new config setting group
* Added example to pillar.example
* Included test (could be better if we check the entire section and
  ensure that it is in the correct format?)
2020-04-06 22:40:52 +02:00

11 lines
489 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_sync_group', 'vrrp_script', 'vrrp_instance', 'virtual_server'] %}
{%- for section in sections %}
{{ print_config({ section: config[section]|d({}) }) }}
{%- endfor %}