icinga-powershell-framework/lib/core/thread/Set-IcingaEnvironmentJEA.psm1

11 lines
297 B
PowerShell
Raw Normal View History

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;
}
}