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