tests acl template

This commit is contained in:
Arne Teuke
2018-12-30 16:59:37 +01:00
parent fbb8f63c86
commit 6704cb0aa9
2 changed files with 2 additions and 2 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','network_allowed src 0.0.0.0/0'],
backend_name => 'test01-backend', backend_name => 'test01-backend',
} }
} }

View File

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