From 01d46be262154b76ffd794fadf0d43deeb425fa6 Mon Sep 17 00:00:00 2001 From: Gary Larizza Date: Wed, 9 May 2012 16:36:40 -0700 Subject: Use array in config class default Previously, I was using the option parameter twice in the default setting for haproxy::config. This commit changes that to passing an array to the option parameter (and fixes the example). --- manifests/config.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'manifests/config.pp') diff --git a/manifests/config.pp b/manifests/config.pp index 55b40d7..fba4f33 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -51,7 +51,7 @@ # virtual_ip => $::ipaddress, # virtual_ip_port => '18140', # mode => 'tcp', -# haproxy_config_options => {'option' => 'tcplog', 'option' => 'ssl-hello-chk', 'balance' => 'roundrobin'}, +# haproxy_config_options => {'option' => ['tcplog', 'ssl-hello-chk'], 'balance' => 'roundrobin'}, # } # # === Authors @@ -63,7 +63,7 @@ define haproxy::config ( $order = '20', $virtual_ip = $::ipaddress, $mode = 'tcp', - $haproxy_config_options = {'option' => 'tcplog', 'option' => 'ssl-hello-chk', 'balance' => 'roundrobin'}, + $haproxy_config_options = {'option' => ['tcplog', 'ssl-hello-chk'], 'balance' => 'roundrobin'}, ) { concat::fragment { "${name}_config_block": order => $order, -- cgit v1.2.3