Replaced the old macro.

This commit is contained in:
Jeff Baskin 2017-01-19 09:06:48 -05:00
parent c545484961
commit 3f85ced525

View File

@ -6,6 +6,9 @@
# Any changes will be overwritten. # Any changes will be overwritten.
{{ '\n' }} {{ '\n' }}
{% import 'config.jinja' as config %}
{{ config.keepalived_config(keepalived_final_values) }}
{# {#
Macro Explanation: Macro Explanation:
@ -19,7 +22,7 @@ hash is then processed by calling the macro again.
Forced carriage returns and use of jinja's indent are only there to make Forced carriage returns and use of jinja's indent are only there to make
the final file more human readable. They serve no other function. the final file more human readable. They serve no other function.
#} #}
{#
{%- import_yaml 'keepalived/defaults.yaml' as keepalived_defaults -%} {%- import_yaml 'keepalived/defaults.yaml' as keepalived_defaults -%}
{%- set keepalived_final_values = salt.pillar.get( {%- set keepalived_final_values = salt.pillar.get(
'keepalived', 'keepalived',
@ -61,3 +64,4 @@ the final file more human readable. They serve no other function.
{%- endmacro -%} {%- endmacro -%}
{{ config_entries(keepalived_final_values, 0) }} {{ config_entries(keepalived_final_values, 0) }}
#}