Sha256: e2271b7164375a1ca10e7364bde8d00b116e2bc84bce75639d778f211f34a143
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
# /etc/haproxy.cfg # # Reload gracefully with: # # haproxy -f /etc/haproxy.cfg -sf `cat /var/run/haproxy.pid` # global user <%= haproxy_user %> group <%= haproxy_group %> <% haproxy_global_options.each do |key, values| [values].flatten.each do |value| %> <%= key %><% if value && value != true %> <%= value %><% end %> <% end end %> defaults <% unless haproxy_default_options[:stats_auth].nil? || haproxy_default_options[:stats_auth].empty? %> stats enable stats <%= haproxy_default_options[:stats_auth] %> <% end %> <% (haproxy_default_options[:options] || {}).each do |key, values| [values].flatten.each do |value| %> <%= key %><% if value && value != true %> <%= value %><% end %> <% end end %> <% haproxy_instances.each_with_index do |instance_ipport, i| %> <% ipport = instance_ipport.first %> <% instance = instance_ipport.last %> listen <%= instance[:name] || "no_name_defined_#{i+1}" %> <%= ipport %> <% (instance[:options] || {}).each do |key, values| [values].flatten.each do |value| %> <%= key %> <%= value %> <% end end %> <% unless instance[:stats_auth].nil? || instance[:stats_auth].empty? %> stats enable stats <%= instance[:stats_auth] %> <% end %> <% (instance[:servers] || {}).each do |key, value| %> <%= key %><% if value && value != true %> <%= value %><% end %> <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
le1t0-deprec-2.1.6.026 | lib/deprec/templates/haproxy/haproxy.cfg.erb |