mirror of https://github.com/zulip/zulip.git
puppet: Remove loadbalancer configurations when they are unset.
This commit is contained in:
parent
e7f4700d76
commit
671b708c4b
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue