AgentWizard: use new installer syntax

This commit is contained in:
Thomas Gelf 2017-07-20 18:33:49 +02:00
parent 8ffdb96d65
commit 3062cf2ebd
1 changed files with 9 additions and 11 deletions

View File

@ -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)