Fixes broken default global zones config

Fixes #2002
This commit is contained in:
Lord Hepipud 2019-11-04 17:37:34 +01:00 committed by Thomas Gelf
parent bbe55f28b6
commit 7895eee2f6
1 changed files with 3 additions and 2 deletions

View File

@ -232,8 +232,9 @@ function Icinga2AgentModule {
$this.debug('Setting "agent_listen_port" to default 5665');
}
if ($this.cfg['global_zones'].Count -eq 0) {
$this.cfg['global_zones'] = @( 'director-global' );
$this.debug('Setting "global_zones" to default "director-global"');
$this.cfg['global_zones'] = @( 'director-global', 'global-templates' );
$this.generateGlobalZones();
$this.debug('Setting "global_zones" to default "director-global" and "global-templates"');
}
if ($this.cfg['accept_config'] -eq -1) {
$this.cfg['accept_config'] = $TRUE;