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;
|
Endpoints = $JsonInput.parent_endpoints;
|
||||||
AddFirewallRule = $JsonInput.agent_add_firewall_rule;
|
AddFirewallRule = $JsonInput.agent_add_firewall_rule;
|
||||||
AcceptConnections = $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 = $JsonInput.icinga_service_user;
|
||||||
ServiceUser = 'NT Authority\NetworkService';
|
|
||||||
UpdateAgent = $TRUE;
|
UpdateAgent = $TRUE;
|
||||||
AddDirectorGlobal = $FALSE;
|
AddDirectorGlobal = $FALSE;
|
||||||
AddGlobalTemplates = $FALSE;
|
AddGlobalTemplates = $FALSE;
|
||||||
RunInstaller = $TRUE;
|
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) {
|
if ($JsonInput.transform_hostname -eq 1) {
|
||||||
$DirectorArguments.Add(
|
$DirectorArguments.Add(
|
||||||
'LowerCase', $TRUE
|
'LowerCase', $TRUE
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue