From 308cf7b22f99191bb6a58da00b72c6ddd1742977 Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Sun, 23 Oct 2016 19:03:11 -0400 Subject: [PATCH] Using the macro function. --- keepalived/templates/keepalived.jinja | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/keepalived/templates/keepalived.jinja b/keepalived/templates/keepalived.jinja index 081c8f7..f0cbf3e 100644 --- a/keepalived/templates/keepalived.jinja +++ b/keepalived/templates/keepalived.jinja @@ -14,7 +14,9 @@ {%- macro config_entries(data) -%} {%- if data is mapping -%} {%- for entry_type in data|dictsort -%} -{{ entry_type }} +{{ entry_type }}{{ '\n' }} {%- endfor -%} {%- endif -%} {%- endmacro -%} + +[%- config_entries(keepalived_final_values) -%}