23 lines
560 B
Django/Jinja
23 lines
560 B
Django/Jinja
# keepalived configuration
|
|
#
|
|
# **** DO NOT EDIT THIS FILE ****
|
|
#
|
|
# This file is managed by Salt.
|
|
# Any changes will be overwritten.
|
|
|
|
{%- import_yaml 'keepalived/defaults.yaml' as keepalived_defaults %}
|
|
{%- set keepalived_final_values = salt.pillar.get(
|
|
'keepalived',
|
|
default=keepalived_defaults,
|
|
merge=True) %}
|
|
|
|
{%- macro config_entries(data) -%}
|
|
{%- if data is mapping -%}
|
|
{%- for entry_type in data|dictsort -%}
|
|
{{ entry_type }}{{ '\n' }}
|
|
{%- endfor -%}
|
|
{%- endif -%}
|
|
{%- endmacro -%}
|
|
|
|
[%- config_entries(keepalived_final_values) -%}
|