summaryrefslogtreecommitdiff
path: root/templates/haproxy-base.cfg.erb
diff options
context:
space:
mode:
authorGary Larizza <gary@puppetlabs.com>2012-05-07 14:26:21 -0700
committerGary Larizza <gary@puppetlabs.com>2012-05-07 14:26:21 -0700
commitc4799e59b9d9891e6c296c554a11814f14a5abfc (patch)
tree1ba82aa54bf523abb30ee03255114ba58fef1d20 /templates/haproxy-base.cfg.erb
Initial Commit
Diffstat (limited to 'templates/haproxy-base.cfg.erb')
-rw-r--r--templates/haproxy-base.cfg.erb21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/haproxy-base.cfg.erb b/templates/haproxy-base.cfg.erb
new file mode 100644
index 0000000..3e21436
--- /dev/null
+++ b/templates/haproxy-base.cfg.erb
@@ -0,0 +1,21 @@
+global
+<% haproxy_global_options.sort.each do |key,val| -%>
+<% if val.is_a?(Array) -%>
+<% val.each do |item| -%>
+ <%= key %> <%= item %>
+<% end -%>
+<% else -%>
+ <%= key %> <%= val %>
+<% end -%>
+<% end -%>
+
+defaults
+<% haproxy_defaults_options.sort.each do |key,val| -%>
+<% if val.is_a?(Array) -%>
+<% val.each do |item| -%>
+ <%= key %> <%= item %>
+<% end -%>
+<% else -%>
+ <%= key %> <%= val %>
+<% end -%>
+<% end -%> \ No newline at end of file