From 3062cf2ebd1882335abcdd75008a4a126b626f07 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 20 Jul 2017 18:33:49 +0200 Subject: [PATCH] AgentWizard: use new installer syntax --- library/Director/IcingaConfig/AgentWizard.php | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/library/Director/IcingaConfig/AgentWizard.php b/library/Director/IcingaConfig/AgentWizard.php index 8bfde577..6e290390 100644 --- a/library/Director/IcingaConfig/AgentWizard.php +++ b/library/Director/IcingaConfig/AgentWizard.php @@ -138,17 +138,15 @@ class AgentWizard { return $this->loadPowershellModule() . "\n\n" - . '$icinga = Icinga2AgentModule `' . "\n " - . $this->renderPowershellParameters( - array( - 'AgentName' => $this->getCertName(), - 'Ticket' => $this->getTicket(), - 'ParentZone' => $this->getParentZone()->getObjectName(), - 'ParentEndpoints' => array_keys($this->getParentEndpoints()), - 'CAServer' => $this->getCaServer(), - ) - ) - . "\n\n" . '$icinga.installIcinga2Agent()' . "\n"; + . 'exit Icinga2AgentModule `' . "\n " + . $this->renderPowershellParameters([ + 'AgentName' => $this->getCertName(), + 'Ticket' => $this->getTicket(), + 'ParentZone' => $this->getParentZone()->getObjectName(), + 'ParentEndpoints' => array_keys($this->getParentEndpoints()), + 'CAServer' => $this->getCaServer(), + 'RunInstaller' + ]); } public function renderTokenBasedWindowsInstaller($token, $withModule = false)