Sam Su e52a7244a7 add haproxy
Change-Id: I487200a373b4eed7ff36f00b1e0269b008cd19bd
2014-03-21 11:27:10 -07:00

12 lines
258 B
Ruby

def haproxy_defaults_options
options = node['haproxy']['defaults_options'].dup
if node['haproxy']['x_forwarded_for']
options.push("forwardfor")
end
return options.uniq
end
def haproxy_defaults_timeouts
node['haproxy']['defaults_timeouts']
end