mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
parent
c6e9da9783
commit
4e97b1f19f
1 changed files with 6 additions and 2 deletions
|
|
@ -19,14 +19,18 @@ function Convert-IcingaDirectorSelfServiceArguments()
|
|||
Endpoints = $JsonInput.parent_endpoints;
|
||||
AddFirewallRule = $JsonInput.agent_add_firewall_rule;
|
||||
AcceptConnections = $JsonInput.agent_add_firewall_rule;
|
||||
#ServiceUser = $JsonInput.service_user; # This is yet missing within the Icinga Director API
|
||||
ServiceUser = 'NT Authority\NetworkService';
|
||||
ServiceUser = $JsonInput.icinga_service_user;
|
||||
UpdateAgent = $TRUE;
|
||||
AddDirectorGlobal = $FALSE;
|
||||
AddGlobalTemplates = $FALSE;
|
||||
RunInstaller = $TRUE;
|
||||
};
|
||||
|
||||
# Use NetworkService as default if nothing was transmitted by Director
|
||||
if ([string]::IsNullOrEmpty($DirectorArguments['ServiceUser'])) {
|
||||
$DirectorArguments['ServiceUser'] = 'NT Authority\NetworkService';
|
||||
}
|
||||
|
||||
if ($JsonInput.transform_hostname -eq 1) {
|
||||
$DirectorArguments.Add(
|
||||
'LowerCase', $TRUE
|
||||
|
|
|
|||
Loading…
Reference in a new issue