tests acl template
This commit is contained in:
@@ -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 => ' acl too_fast fe_sess_rate ge 10',
|
acl_rule => 'too_fast fe_sess_rate ge 10',
|
||||||
backend_name => 'test01-backend',
|
backend_name => 'test01-backend',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<% if @acl_rule != '' -%>
|
<% if @acl_rule != '' -%>
|
||||||
acl <%= @acl_rule %>
|
acl <%= @acl_rule %>
|
||||||
<% else -%>
|
<% else -%>
|
||||||
# no acl given %>
|
# no acl given %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|||||||
Reference in New Issue
Block a user