diff options
author | Gary Larizza <gary@puppetlabs.com> | 2012-05-07 14:26:21 -0700 |
---|---|---|
committer | Gary Larizza <gary@puppetlabs.com> | 2012-05-07 14:26:21 -0700 |
commit | c4799e59b9d9891e6c296c554a11814f14a5abfc (patch) | |
tree | 1ba82aa54bf523abb30ee03255114ba58fef1d20 /templates/haproxy_config_block.erb |
Initial Commit
Diffstat (limited to 'templates/haproxy_config_block.erb')
-rw-r--r-- | templates/haproxy_config_block.erb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/haproxy_config_block.erb b/templates/haproxy_config_block.erb new file mode 100644 index 0000000..8737dfc --- /dev/null +++ b/templates/haproxy_config_block.erb @@ -0,0 +1,11 @@ + +listen <%= name %> <%= virtual_ip %>:<%= virtual_ip_port %> +<% haproxy_config_options.sort.each do |key, val| -%> +<% if val.is_a?(Array) -%> +<% val.each do |item| -%> + <%= key %> <%= item %> +<% end -%> +<% else -%> + <%= key %> <%= val %> +<% end -%> +<% end -%> |