puppet: Remove loadbalancer configurations when they are unset.

This commit is contained in:
Alex Vandiver 2023-06-16 17:01:37 +00:00 committed by Tim Abbott
parent e7f4700d76
commit 671b708c4b
1 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,12 @@ class zulip::app_frontend_base {
source => 'puppet:///modules/zulip/nginx/zulip-include-app.d/keepalive-loadbalancer.conf',
notify => Service['nginx'],
}
} else {
file { ['/etc/nginx/zulip-include/app.d/accept-loadbalancer.conf',
'/etc/nginx/zulip-include/app.d/keepalive-loadbalancer.conf']:
ensure => absent,
notify => Service['nginx'],
}
}
file { '/etc/nginx/zulip-include/upstreams':