Skip to content

Commit

Permalink
M #-: VR: Erase servers.cfg to allow HAProxy start after VIP removal …
Browse files Browse the repository at this point in the history
…(fix) (#141)
  • Loading branch information
sk4zuzu authored Nov 29, 2024
1 parent ff7bcb6 commit 1200488
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 1200488

Please sign in to comment.