diff --git a/appliances/VRouter/HAProxy/main.rb b/appliances/VRouter/HAProxy/main.rb index 1cc50b91..5151646b 100644 --- a/appliances/VRouter/HAProxy/main.rb +++ b/appliances/VRouter/HAProxy/main.rb @@ -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)