edites template
This commit is contained in:
@@ -27,7 +27,7 @@ define cd_haproxy::server::proxy (
|
|||||||
|
|
||||||
$frontend_name = undef,
|
$frontend_name = undef,
|
||||||
$frontend_mode = undef,
|
$frontend_mode = undef,
|
||||||
$fe_use_backend = undef,
|
$fe_use_backend = '',
|
||||||
$frontend_order = '010',
|
$frontend_order = '010',
|
||||||
$acl_rule = undef,
|
$acl_rule = undef,
|
||||||
$acl_order = '020',
|
$acl_order = '020',
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ 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',
|
||||||
fe_use_backend => "${backend_name}",
|
|
||||||
acl_rule => 'test01-acl',
|
acl_rule => 'test01-acl',
|
||||||
backend_name => 'test01-backend',
|
backend_name => 'test01-backend',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
frontend <%= @frontend_name %>
|
frontend <%= @frontend_name %>
|
||||||
mode <%= @frontend_mode %>
|
mode <%= @frontend_mode %>
|
||||||
|
|
||||||
|
<% if @fe_use_backend != '' -%>
|
||||||
use_backend <%= @fe_use_backend %>
|
use_backend <%= @fe_use_backend %>
|
||||||
|
<% else -%>
|
||||||
|
use_backend <%= @backend_name %>
|
||||||
|
<% end -%>
|
||||||
|
|||||||
Reference in New Issue
Block a user