Merge pull request #835 from Icinga:fix/ensure_jea_always_rebuild_framework

Fix: JEA compiler to always force a framework rebuild on update

Fixes JEA compiler to always enforce a rebuild of the Framework to ensure integrity of JEA profiles
This commit is contained in:
Lord Hepipud 2025-11-13 18:32:49 +01:00 committed by GitHub
commit 7276d43ac2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -11,6 +11,8 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/38)
* [#835](https://github.com/Icinga/icinga-powershell-framework/pull/835) Fixes JEA compiler to always enforce a rebuild of the Framework to ensure integrity of JEA profiles
## 1.13.4 (tbd)
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/42)

View file

@ -23,7 +23,8 @@ function Install-IcingaJEAProfile()
}
Write-IcingaConsoleNotice 'Writing Icinga for Windows environment information as JEA profile';
Write-IcingaJEAProfile -RebuildFramework:$RebuildFramework -AllowScriptBlocks:$AllowScriptBlocks;
# Always rebuild the framework to ensure we have the latest configuration
Write-IcingaJEAProfile -RebuildFramework -AllowScriptBlocks:$AllowScriptBlocks;
Write-IcingaConsoleNotice 'Registering Icinga for Windows JEA profile';
Register-IcingaJEAProfile -IcingaUser $IcingaUser -TestEnv:$TestEnv -ConstrainedLanguage:$ConstrainedLanguage;
# We need to run the task renewal with our scheduled task to fix errors while using WinRM / SSH