summaryrefslogtreecommitdiff
path: root/puppet/modules/site_haproxy/templates/haproxy.cfg.erb
diff options
context:
space:
mode:
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 -%>
+