From 36fbd37204ade61160ab060b055e9887288dcefd Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Wed, 10 Oct 2012 17:05:59 -0700 Subject: Rename `haproxy_config_options` parameter to `config_options` For great sanity --- manifests/config.pp | 12 ++++++------ templates/haproxy_config_block.erb | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/manifests/config.pp b/manifests/config.pp index 415c5f6..974f213 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -38,7 +38,7 @@ # The mode of operation for the listening service. Valid values are 'tcp', # HTTP', and 'health'. # -# [*haproxy_config_options*] +# [*config_options*] # A hash of options that are inserted into the listening service # configuration block. # @@ -69,11 +69,11 @@ # define haproxy::config ( $ports, - $order = '20', - $virtual_ip = $::ipaddress, - $mode = 'tcp', - $collect_exported = true, - $haproxy_config_options = { + $order = '20', + $virtual_ip = $::ipaddress, + $mode = 'tcp', + $collect_exported = true, + $config_options = { 'option' => [ 'tcplog', 'ssl-hello-chk' diff --git a/templates/haproxy_config_block.erb b/templates/haproxy_config_block.erb index 42d0e06..526249f 100644 --- a/templates/haproxy_config_block.erb +++ b/templates/haproxy_config_block.erb @@ -1,6 +1,6 @@ listen <%= name %> <%= virtual_ip %>:<%= Array(ports).join(",#{virtual_ip}:") %> -<% haproxy_config_options.sort.each do |key, val| -%> +<% config_options.sort.each do |key, val| -%> <% if val.is_a?(Array) -%> <% val.each do |item| -%> <%= key %> <%= item %> -- cgit v1.2.3