mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes CA endpoint configuration
This commit is contained in:
parent
8c6b9257e2
commit
f81413a66d
1 changed files with 6 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ function Convert-IcingaDirectorSelfServiceArguments()
|
||||||
AllowVersionChanges = $JsonInput.allow_updates;
|
AllowVersionChanges = $JsonInput.allow_updates;
|
||||||
GlobalZones = $JsonInput.global_zones;
|
GlobalZones = $JsonInput.global_zones;
|
||||||
ParentZone = $JsonInput.parent_zone;
|
ParentZone = $JsonInput.parent_zone;
|
||||||
CAEndpoint = $JsonInput.ca_server;
|
#CAEndpoint = $JsonInput.ca_server;
|
||||||
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;
|
||||||
|
|
@ -58,6 +58,11 @@ function Convert-IcingaDirectorSelfServiceArguments()
|
||||||
$DirectorArguments.Add(
|
$DirectorArguments.Add(
|
||||||
'EndpointConnections', $NetworkDefault
|
'EndpointConnections', $NetworkDefault
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$EndpointConnections = $NetworkDefault.Split(',');
|
||||||
|
$DirectorArguments.Add(
|
||||||
|
'CAEndpoint', (Get-IPConfigFromString $EndpointConnections[0]).address
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $DirectorArguments;
|
return $DirectorArguments;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue