From af322a73c013f80a958ab7d5d31d0c75cf6d0523 Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 9 Nov 2015 09:51:51 +0100 Subject: [deprec] use @ in front of erb template tags Puppet 3 shows now deprecation warnings if the "@" is missing. see https://docs.puppetlabs.com/puppet/latest/reference/lang_template_erb.html#non-printing-tags --- templates/haproxy-base.cfg.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/haproxy-base.cfg.erb b/templates/haproxy-base.cfg.erb index 42e791c..f25d5c3 100644 --- a/templates/haproxy-base.cfg.erb +++ b/templates/haproxy-base.cfg.erb @@ -1,5 +1,5 @@ global -<% global_options.sort.each do |key,val| -%> +<% @global_options.sort.each do |key,val| -%> <% if val.is_a?(Array) -%> <% val.each do |item| -%> <%= key %> <%= item %> @@ -10,7 +10,7 @@ global <% end -%> defaults -<% defaults_options.sort.each do |key,val| -%> +<% @defaults_options.sort.each do |key,val| -%> <% if val.is_a?(Array) -%> <% val.each do |item| -%> <%= key %> <%= item %> -- cgit v1.2.3