summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorGary Larizza <gary@puppetlabs.com>2012-05-09 16:36:40 -0700
committerGary Larizza <gary@puppetlabs.com>2012-05-09 16:36:40 -0700
commit01d46be262154b76ffd794fadf0d43deeb425fa6 (patch)
treea5c783663170ce6785f0f9c98207b80036cf64c8 /manifests
parent98aaa48b6759c05a9e7bb1cab3d6f178658bc450 (diff)
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).
Diffstat (limited to 'manifests')
-rw-r--r--manifests/config.pp4
1 files changed, 2 insertions, 2 deletions
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,