testing hostbinding
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
define cd_haproxy::server::proxy (
|
define cd_haproxy::server::proxy (
|
||||||
|
|
||||||
|
$haproxy_fqdn = undef,
|
||||||
$frontend_name = undef,
|
$frontend_name = undef,
|
||||||
$frontend_mode = undef,
|
$frontend_mode = undef,
|
||||||
$fe_use_backend = '',
|
$fe_use_backend = '',
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
|
<% if @fqdn == @haproxy_fqdn -%>
|
||||||
<% if @acl_rule != '' -%>
|
<% if @acl_rule != '' -%>
|
||||||
<% @acl_rule.each do |acl_rule| -%>
|
<% @acl_rule.each do |acl_rule| -%>
|
||||||
acl <%= acl_rule %>
|
acl <%= acl_rule %>
|
||||||
<% end end -%>
|
<% end end end -%>
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
|
<% if @fqdn == @haproxy_fqdn -%>
|
||||||
backend <%= @backend_name %>
|
backend <%= @backend_name %>
|
||||||
|
<% end -%
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<% if @fqdn == @haproxy_fqdn -%>
|
||||||
frontend <%= @frontend_name %>
|
frontend <%= @frontend_name %>
|
||||||
mode <%= @frontend_mode %>
|
mode <%= @frontend_mode %>
|
||||||
bind <%= @fe_bind_mode %>
|
bind <%= @fe_bind_mode %>
|
||||||
@@ -5,4 +6,4 @@ bind <%= @fe_bind_mode %>
|
|||||||
use_backend <%= @fe_use_backend %>
|
use_backend <%= @fe_use_backend %>
|
||||||
<% else -%>
|
<% else -%>
|
||||||
use_backend <%= @backend_name %>
|
use_backend <%= @backend_name %>
|
||||||
<% end -%>
|
<% end end-%>
|
||||||
|
|||||||
Reference in New Issue
Block a user