The old Cmdlet's documentation implied that just by passing the
-IcingaConfig switch, an Icinga 2 configuration would be generated.
However, the first two examples does not work as intended, as
-IcingaConfig only works together with the -OutDirectory parameter.
The documentation was updated to reflect as Get-IcingaCheckCommandConfig
behaves and how one can generate Icinga 2 configurations. In addition,
a note was added to the Cmdlet's API documentation to handle
expectations of the switch.
Fix: JEA profile always modified during update process
Fixes JEA-Profiles always being updated during `Update-Icinga` calls, even when no component or non JEA related components were updated
Fix: Update-Icinga not updating to latest or specified version
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
Fix: Clear-Host throwing exceptions during automation tasks
Fixes an issue with `Clear-Host` which could cause an exception during certain automation tasks, causing it to fail
Feature: Adds new feature to write documents easier
Adds new feature to write document content easier by storing it in memory first and then allowing to write it to disk at once with proper UTF8 encoding
New cmdlets:
* New-IcingaDocumentObject
* Add-IcingaDocumentContent
* Write-IcingaDocumentFile
Useful in case someone renames the commands in Director.
Otherwise, in this case, all commands would be broken with ifw-api as vars.ifw_api_command defaults to $command.name$.
Fix: Sync-IcingaRepository not saving SSH settings
Fixes `Sync-IcingaRepository` which did not save the SSH user and host inside the repository configuration, preventing `Update-IcingaRepository` to work properly and added missing scp progress
Fix: Config generator custom variable too long error message
Fixes error message during config generation with `Get-IcingaCheckCommandConfig` to make it more clear, in case the custom variables generated are too long for the Icinga Director import
Feature: Adds support to write the name of the repo inside the json file
Adds support to write the name of the repository synced/created into the local `ifw.repo.json` file
Feature: Adds support to not load a new PowerShell instance for command icinga
Adds support to run command `icinga` with new argument `-NoNewInstance`, to use `-RebuildCache` as example to update the current PowerShell instance with all applied changes, instead of create a new shell instance.
Does not support the argument `-DeveloperMode` in the same call, as Icinga for Window is dependent on these files for the current session.
Fix: Improves REST-Api memory management
Fixes some memory management while using the REST-Api to clear connection objects once they are no longer required
Get-IcingaCheckCommandConfig: provide vars.ifw_api_arguments in each command
Adds support for Icinga 2.14.0 native Icinga for Windows API communication
Fix: Error and exception handling over API checks
Fixes error and exception handling while using API-Checks, which now will in most cases always return a proper check-result object and also abort while running into plugin execution errors, in case a server is not reachable by the time sync plugin as example.