From 7895eee2f66206cf80cfd1b94a8d358b95da0eee Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Mon, 4 Nov 2019 17:37:34 +0100 Subject: [PATCH] Fixes broken default global zones config Fixes #2002 --- contrib/windows-agent-installer/Icinga2Agent.psm1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/windows-agent-installer/Icinga2Agent.psm1 b/contrib/windows-agent-installer/Icinga2Agent.psm1 index 0099fc0c..468ddb26 100644 --- a/contrib/windows-agent-installer/Icinga2Agent.psm1 +++ b/contrib/windows-agent-installer/Icinga2Agent.psm1 @@ -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;