tests acl template

This commit is contained in:
Arne Teuke
2018-12-30 16:47:49 +01:00
parent 8d942fff44
commit fbb8f63c86
2 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class cd_haproxy::server::proxy_test (
cd_haproxy::server::proxy { 'testing': cd_haproxy::server::proxy { 'testing':
frontend_name => 'test01-frontend', frontend_name => 'test01-frontend',
frontend_mode => 'http', frontend_mode => 'http',
acl_rule => 'too_fast fe_sess_rate ge 10', acl_rule => ['too_fast fe_sess_rate ge 10',],
backend_name => 'test01-backend', backend_name => 'test01-backend',
} }
} }

View File

@@ -1,5 +1,6 @@
<% if @acl_rule != '' -%> <% if @acl_rule != '' -%>
acl <%= @acl_rule %> <% @acl_rule.each.do |acl_rule| -%>
acl <%= acl_rule %>
<% else -%> <% else -%>
# no acl given %> # no acl given %>
<% end -%> <% end end -%>