Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions appliances/VRouter/HAProxy/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ def configure(basedir: '/etc/haproxy', confdir: '/etc/conf.d')
timeout client 120s
timeout server 120s
CONFIG

# Ensure HAProxy starts without any effective config, otherwise it'd be possible
# for it to fail when for example re-contexting removed a VIP.
file "#{basedir}/servers.cfg", '', mode: 'u=rw,g=r,o=', overwrite: true
end

def toggle(operations)
Expand Down