Merge pull request #667 from Icinga:fix/jea_profile_not_including_rest_api_on_first_installation

Fix: JEA installer not including REST-Api on first run

Fixes JEA profile compiler not including REST-Api configuration during first installation
This commit is contained in:
Lord Hepipud 2023-11-03 16:48:42 +01:00 committed by GitHub
commit 4a6a8ed99c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 16 deletions

View file

@ -17,6 +17,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#660](https://github.com/Icinga/icinga-powershell-framework/pull/660) Fixes `Update-Icinga` not updating to the latest available version for a component and specifying `-Version` is updating to the latest one instead of the given one instead
* [#661](https://github.com/Icinga/icinga-powershell-framework/pull/661) Fixes Icinga Agent installation and uninstallation, which could cause unintended automatic reboots
* [#662](https://github.com/Icinga/icinga-powershell-framework/pull/662) Fixes JEA-Profiles always being updated during `Update-Icinga` calls, even when no component or non JEA related components were updated
* [#664](https://github.com/Icinga/icinga-powershell-framework/pull/664) Fixes JEA profile compiler not including REST-Api configuration during first installation
## 1.11.0 (2023-08-01)

View file

@ -252,22 +252,6 @@ function Start-IcingaForWindowsInstallation()
Restart-IcingaWindowsService;
}
switch ($InstallJEAProfile) {
'0' {
Install-IcingaJEAProfile;
$InstallJEA = $TRUE;
break;
};
'1' {
Install-IcingaSecurity;
$InstallJEA = $TRUE;
break;
};
'2' {
# Do not install JEA profile
};
}
switch ($InstallApiChecks) {
'0' {
Disable-IcingaFrameworkApiChecks;
@ -298,9 +282,26 @@ function Start-IcingaForWindowsInstallation()
};
}
switch ($InstallJEAProfile) {
'0' {
Install-IcingaJEAProfile;
$InstallJEA = $TRUE;
break;
};
'1' {
Install-IcingaSecurity;
$InstallJEA = $TRUE;
break;
};
'2' {
# Do not install JEA profile
};
}
# Install Icinga for Windows certificate if both, JEA and REST is installed
if ($InstallJEA -And $InstallRESTApi) {
Install-IcingaForWindowsCertificate;
Restart-IcingaWindowsService;
}
# Update configuration and clear swap