icinga-powershell-framework/lib/core/thread/Set-IcingaEnvironmentJEA.psm1
2022-01-28 21:06:18 +01:00

10 lines
297 B
PowerShell

function Set-IcingaEnvironmentJEA()
{
param (
[bool]$JeaEnabled = $FALSE
);
if ($null -ne $Global:Icinga -And $Global:Icinga.ContainsKey('Protected') -And $Global:Icinga.Protected.ContainsKey('JEAContext')) {
$Global:Icinga.Protected.JEAContext = $JeaEnabled;
}
}