Skip to content

Commit 3d22809

Browse files
authored
Merge pull request #643 from Icinga:feature/rebuild_cache_should_also_apply_to_installed_components
Feature: Adds support for -RebuildCache flag on icinga cmd to rebuild component cache Adds support to simply use `-RebuildCache` for ```powershell icinga -RebuildCache; ``` or ```powershell icinga -Shell -RebuildCache; ``` to generate a new cache file not only for the Framework (like before), but also for all installed components of Icinga for Windows. This makes it easier for regular use and error handling, as users will not have to remember a different Cmdlet or use the `-DeveloperMode` to force Icinga for Windows to rebuild everything.
2 parents 6220349 + a1dff5b commit 3d22809

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

doc/100-General/10-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
2626
* [#623](https://github.com/Icinga/icinga-powershell-framework/issues/623) Adds support to provide the Icinga service user written as `user@domain`
2727
* [#635](https://github.com/Icinga/icinga-powershell-framework/pull/635) Adds support for `Write-IcingaAgentApiConfig` function to configure the Icinga Agent TLS cipher list setting by new argument `-CipherList`
2828
* [#640](https://github.com/Icinga/icinga-powershell-framework/issues/640) Adds support to set the flag `-NoSSLValidation` for Cmdlets `icinga` and `Install-Icinga`, to ignore errors on self-signed certificates within the environment
29+
* [#643](https://github.com/Icinga/icinga-powershell-framework/pull/643) Adds support for `-RebuildCache` flag on `icinga` cmd to rebuild component cache as well
2930

3031
## 1.10.1 (2022-12-20)
3132

icinga-powershell-framework.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ function Invoke-IcingaCommand()
281281
}
282282

283283
if ($RebuildCache -Or $DeveloperMode) {
284+
Copy-IcingaFrameworkCacheTemplate;
284285
Write-IcingaFrameworkCodeCache -DeveloperMode:$DeveloperMode;
285286
}
286287

0 commit comments

Comments
 (0)