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
47a505ea77
commit
011cf54d1c
1 changed files with 6 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ function Convert-IcingaDirectorSelfServiceArguments()
|
|||
AllowVersionChanges = $JsonInput.allow_updates;
|
||||
GlobalZones = $JsonInput.global_zones;
|
||||
ParentZone = $JsonInput.parent_zone;
|
||||
CAEndpoint = $JsonInput.ca_server;
|
||||
#CAEndpoint = $JsonInput.ca_server;
|
||||
Endpoints = $JsonInput.parent_endpoints;
|
||||
AddFirewallRule = $JsonInput.agent_add_firewall_rule;
|
||||
AcceptConnections = $JsonInput.agent_add_firewall_rule;
|
||||
|
|
@ -58,6 +58,11 @@ function Convert-IcingaDirectorSelfServiceArguments()
|
|||
$DirectorArguments.Add(
|
||||
'EndpointConnections', $NetworkDefault
|
||||
);
|
||||
|
||||
$EndpointConnections = $NetworkDefault.Split(',');
|
||||
$DirectorArguments.Add(
|
||||
'CAEndpoint', (Get-IPConfigFromString $EndpointConnections[0]).address
|
||||
);
|
||||
}
|
||||
|
||||
return $DirectorArguments;
|
||||
|
|
|
|||
Loading…
Reference in a new issue