summaryrefslogtreecommitdiff
path: root/puppet/modules/site_haproxy/templates/haproxy.cfg.erb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-21 02:52:43 -0700
committerelijah <elijah@riseup.net>2014-06-21 02:52:43 -0700
commit9b55b9a0feac9ec778db74f250d4bc2bb5831e08 (patch)
treee77adcac95d8b3d8fd5ea5f3bbe8f6cab79074c8 /puppet/modules/site_haproxy/templates/haproxy.cfg.erb
parent56917469bd20293dda7e4187c01d822d42ee98cd (diff)
haproxy: support read only couchdb mirrors
Diffstat (limited to 'puppet/modules/site_haproxy/templates/haproxy.cfg.erb')
-rw-r--r--puppet/modules/site_haproxy/templates/haproxy.cfg.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/puppet/modules/site_haproxy/templates/haproxy.cfg.erb b/puppet/modules/site_haproxy/templates/haproxy.cfg.erb
new file mode 100644
index 00000000..8311b1a5
--- /dev/null
+++ b/puppet/modules/site_haproxy/templates/haproxy.cfg.erb
@@ -0,0 +1,11 @@
+<%- @haproxy.each do |frontend, options| -%>
+<%- if options['servers'] -%>
+
+##
+## <%= frontend %>
+##
+
+<%= scope.function_templatewlv(["site_haproxy/#{frontend}.erb", options]) %>
+<%- end -%>
+<%- end -%>
+