45e3261e53
* 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?)
11 lines
489 B
Django/Jinja
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 %}
|