tests acl template
This commit is contained in:
@@ -27,7 +27,7 @@ class cd_haproxy::server::proxy_test (
|
||||
cd_haproxy::server::proxy { 'testing':
|
||||
frontend_name => 'test01-frontend',
|
||||
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',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% if @acl_rule != '' -%>
|
||||
<% @acl_rule.each.do |acl_rule| -%>
|
||||
<% @acl_rule.each.do |acl_rule| %>
|
||||
acl <%= acl_rule %>
|
||||
<% else -%>
|
||||
# no acl given %>
|
||||
|
||||
Reference in New Issue
Block a user