From 66f16e8e09c4d13b9c2933b2afbbce4f0cdcece2 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sat, 29 Dec 2018 19:47:00 +0100 Subject: [PATCH] adding template for testing --- manifests/server/proxy.pp | 2 +- templates/haproxy_head.erb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/server/proxy.pp b/manifests/server/proxy.pp index d2f1028..60f75bf 100644 --- a/manifests/server/proxy.pp +++ b/manifests/server/proxy.pp @@ -36,7 +36,7 @@ $hy_frontendrule = 'cd_haproxy/haproxy_frontend_rule.erb' # create frontend section concat::fragment { "frontend_${name}": target => $hy_main_config, - content => $hy_frontendrule, + content => template($hy_frontendrule), order => $frontend_order, } diff --git a/templates/haproxy_head.erb b/templates/haproxy_head.erb index 37b0626..bc2dd4c 100644 --- a/templates/haproxy_head.erb +++ b/templates/haproxy_head.erb @@ -45,3 +45,5 @@ defaults timeout http-keep-alive <%= @hy_timeout_http_keep_alive %> timeout check <%= @hy_timeout_check %> maxconn <%= @hy_maxconn %> + +### custom rules below ###