diff --git a/doc/puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html b/doc/puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html index faf8f45..0c5501b 100644 --- a/doc/puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html +++ b/doc/puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html @@ -256,7 +256,7 @@ correct lb instance configuration.
(string) - (defaults to: undef) + (defaults to: '') — @@ -311,7 +311,7 @@ instance configuration. (string) - (defaults to: undef) + (defaults to: '') — @@ -421,34 +421,48 @@ instance configuration. 75 76 77 -78 +78 +79 +80 +81 +82 +83 +84 +85# File 'manifests/server/proxy.pp', line 41
define cd_haproxy::server::proxy (
-$haproxy_fqdn = undef,
-$frontend_name = undef,
-$frontend_mode = undef,
-$fe_use_backend = '',
-$fe_bind_mode = undef,
-$frontend_order = '010',
-$acl_rule_front = '',
-$acl_rule_back = '',
-$backend_name = undef,
-$backend_order = '030',
-$fe_maxconn = '',
-$be_server_name = undef,
-$be_balance = '',
-$be_mode = '',
+ $haproxy_fqdn = undef,
+ $frontend_name = undef,
+ $frontend_mode = undef,
+ $fe_use_backend = '',
+ $fe_bind_mode = undef,
+ $frontend_order = '010',
+ $acl_rule_front = '',
+ $acl_rule_back = '',
+ $backend_name = '',
+ $backend_order = '030',
+ $fe_maxconn = '',
+ $be_server_name = '',
+ $be_balance = '',
+ $be_mode = '',
) {
-$hy_main_config = '/etc/haproxy/haproxy.cfg'
-$hy_frontendrule = 'cd_haproxy/haproxy_frontend_rule.erb'
-$hy_backendrule = 'cd_haproxy/haproxy_backend_rule.erb'
-$hy_acl_rule = 'cd_haproxy/haproxy_acl_rule.erb'
+ $hy_main_config = '/etc/haproxy/haproxy.cfg'
+ $hy_frontendrule = 'cd_haproxy/haproxy_frontend_rule.erb'
+ $hy_backendrule = 'cd_haproxy/haproxy_backend_rule.erb'
+ $hy_acl_rule = 'cd_haproxy/haproxy_acl_rule.erb'
+
+
+ # Ensure acl_rule_front and acl_rule_back are arrays
+ $acl_rule_front_array = split($acl_rule_front, '|')
+ $acl_rule_back_array = split($acl_rule_back, '|')
+ $backend_name_array = split($backend_name, '|')
+ $be_server_name_array = split($be_server_name, '|')
# create frontend section
concat::fragment { "frontend_${name}":