Commit graph

1788 commits

Author SHA1 Message Date
Lord Hepipud
5fad73b4e7 Fixes Remote Sync clears RemoteSource 2022-08-18 14:17:37 +02:00
Lord Hepipud
a4d1971114
Merge pull request #548 from Icinga:fix/update_repository_resets_remote_path
Fix: RemoteSouce being cleared during Update-IcingaRepository

Fixes `RemoteSource` being cleared within repository `.json` files during `Update-IcingaRepository` tasks
2022-08-18 14:04:30 +02:00
Lord Hepipud
82af4f9da4 Fixes RemoteSouce being cleared during Update-IcingaRepository 2022-08-18 14:03:45 +02:00
Lord Hepipud
df4759fee3
Merge pull request #547 from Icinga:docs/wrong_install-icinga_arguments
Docs: Fixes wrong argument on Install-Icinga from file
2022-08-18 13:35:47 +02:00
Lord Hepipud
8107e1152e Fixes docs for wrong argument on Install-Icinga 2022-08-18 13:34:33 +02:00
Lord Hepipud
2c8a92fab5
Merge pull request #482 from Icinga:fix/utf8_encoding_errors
Fix: Encoding problems with special chars or German umlauts

Fixes Icinga for Windows plugin execution, by converting all parsed arguments and values from Icinga 2 from the `Default` of the PowerShell to `UTF8`.

This resolves issues during plugin execution on which arguments like `-Path`, `-TaskName` or anything else contained characters like `äöüß`.

In addition, we created an internal `StringBuilder` to resolve current issues on which unescaped strings within the Icinga configuration like `Icinga for Windows` instead of `'Icinga for Windows'`, are interpreted as `Icinga` instead of `Icinga for Windows` because of the whitespaces.

The new argument parser will test for this and create a proper string output value.
2022-08-17 17:36:42 +02:00
Lord Hepipud
787500c452 Fixes UTF8 encoding for plugin execution 2022-08-17 17:13:00 +02:00
Lord Hepipud
fd3ddd1538
Merge pull request #473 from Icinga:fix/icinga_config_string_dsl
Fix: Adds DSL parser to string arguments to fix whitespace and $ escaping

Fixes an issue with current implementation, as string values containing whitespaces or `$` are rendered wrong by default, if not set in single quotes `''`

Example:

Using `My Service`

will output

`My`
`Service`

This issue is already fixed for arrays, but plain string values on arguments require this workaround.

As Icinga 2 will always set arguments if a DSL is specified, regardless if a value is present or not, we have to use a `set_if` expression for this, but can't as the Icinga Director baskets currently ignore `set_if_format` which requires to be an expression instead of a string.
2022-08-17 17:02:16 +02:00
Lord Hepipud
f126065cad Adds DSL parser to string arguments, fixing errors 2022-08-17 17:00:36 +02:00
Lord Hepipud
a83d35e60e
Merge pull request #534 from Icinga:Fix_powershell_array_creation_in_icinga_config
Fix the creation of powershell arrays in Icinga2 configuration

Improves Icinga and Director configuration generator, by wrapping PowerShell arrays inside `@()` instead of simply writing them comma separated
2022-08-17 16:06:11 +02:00
RincewindsHat
4e182ca8ea Fix the creation of powershell arrays in Icinga2 configuration 2022-08-17 16:04:58 +02:00
Lord Hepipud
c200cc6f11
Merge pull request #543 from Icinga:fix/developer_mode_option_causes_always_cache_reset_while_using_icinga
Fix: icinga command always resetting cache

Fixes the `icinga` command which always resets the Framework cache, caused by newly introduced `Developer Mode`
2022-08-17 15:30:18 +02:00
Lord Hepipud
6d86c0fe28 Fixes icinga command always resetting cache 2022-08-17 15:26:52 +02:00
Lord Hepipud
b7a0d3892d
Merge pull request #542 from Icinga:fix/null-value_exception_for_no_background_daemons_configured
Fix: Null-value exception on missing background daemons

Fixes `You cannot call a method on va null-valued expression` during installation or while enabling JEA, in case no background daemons have been configured.
2022-08-17 14:59:12 +02:00
Lord Hepipud
906d616966 Fixes null-value exception on missing background daemons 2022-08-17 14:52:40 +02:00
Lord Hepipud
8af403de55
Merge pull request #541 from Icinga:fix/improve_location_handling_for_uninstaller
Fix: Uninstaller removal errors by improving location handling

Improves internal component uninstaller and Icinga for Windows uninstaller to ensure folders are not locked during uninstallation with the current PowerShell sessions
2022-08-17 12:39:54 +02:00
Lord Hepipud
9d422e8c67 Fixes uninstaller by improving location handling 2022-08-17 12:38:36 +02:00
Lord Hepipud
d1734f7daa
Merge pull request #540 from Icinga:doc/improve_custom_repo_installation_example
Docs: Fixes doc for custom repo example installation

Makes installation example for using custom repositories and director automation more clear and fixes missing `IfW-StableRepository` installation command entry.
2022-08-16 15:40:35 +02:00
Lord Hepipud
2511257b0f Fixes docs for custom repo example installation 2022-08-16 15:38:13 +02:00
Lord Hepipud
6dbe210337
Merge pull request #536 from Icinga/feature/easier_include_exclude_filtering
Feature: Adds function for easier include/exclude filtering

Adds generic function for easier managing include/exclude filtering for plugins and for cleaning arrays with not wanted content.
2022-08-05 09:36:50 +02:00
Lord Hepipud
5f8b59e4da
Merge pull request #537 from Icinga/doku_fix
Fix missing file name in URL
2022-07-13 20:15:58 +02:00
RincewindsHat
b5493eee69 Fix missing file name in URL 2022-07-13 14:02:41 +02:00
Lord Hepipud
f908d5b2bd Adds function for easier include/exclude filtering 2022-07-12 13:33:02 +02:00
Lord Hepipud
5263f0cddc
Merge pull request #532 from Icinga:fix/exceptions_for_missing_Cmdlets_on_encapsulated_calls
Fix: Exceptions on encapsulated PowerShell calls for missing Cmdlets

Fixes errors on encapsulated PowerShell calls for missing Cmdlets `Write-IcingaConsoleError` and `Optimize-IcingaForWindowsMemory`, while trying to restart services or appling configurations which require a new PowerShell session.
2022-06-08 16:50:54 +02:00
Lord Hepipud
02d1e71032 Fixes errors on encapsulated PowerShell calls 2022-06-08 16:48:19 +02:00
Lord Hepipud
b85f282f0b Updates changelog for v1.9.2 2022-06-03 17:12:58 +02:00
Lord Hepipud
1b2e3a6ee1
Merge pull request #531 from Icinga:feature/icinga_state_file_test_and_repair
Feature: Adds test and repair for the Icinga Agent state file

Adds new Cmdlets to test and repair the Icinga Agent state file, in case the file is corrupt.

The `Test-IcingaAgent` will now check by default of the state is present and in case it is, if the file is healthy or corrupted.

A repair command `Repair-IcingaStateFile` will remove the corrupted files afterwards to ensure the Icinga Agent can be started as service again.
2022-06-03 14:17:24 +02:00
Lord Hepipud
55be30f52d Adds feature to test/repair the agent state file 2022-06-03 14:13:39 +02:00
Lord Hepipud
6b0e177c48
Merge pull request #529 from Icinga:fix/package_manifest_reader_on_2012r2
Fix: Package manifest reader on Win 2012 R2

Fixes package manifest reader for Icinga for Windows components on Windows 2012 R2 and older.
2022-06-01 16:56:58 +02:00
Lord Hepipud
8ed242ad50 Fixes package manifest reader on Win 2012 R2 2022-06-01 16:56:12 +02:00
Lord Hepipud
126ac28ea2
Merge pull request #527 from Icinga:feature/dev_mode_include_components
Feature: Adds developer mode for components

Adds support for the developer mode to now include the modules as well and ensure, that available cache files are overwritten with the template again.

This ensures that we can develop new features and test them on the fly, without having to manipulate cache files manually.
2022-05-30 09:48:00 +02:00
Lord Hepipud
982ae84be6 Adds developer mode support for components 2022-05-30 09:46:18 +02:00
Lord Hepipud
384ab1cf89
Merge pull request #525 from Icinga:feature/vscode_cache_overwrite
Features: Adds developer mode to prevent cache overwrite

Adds new developer mode for `icinga` command and improved cache handling, to ensure within `-DeveloperMode` and inside a VS Code environment, the framework cache file is never overwritten, while still all functions are loaded and imported.
2022-05-24 14:02:53 +02:00
Lord Hepipud
8df5ab35bb Adds developer mode to prevent cache overwrite 2022-05-24 14:00:59 +02:00
Lord Hepipud
42320b55b3
Merge pull request #521 from Icinga:feature/adds_service_recovery
Feature: Adds support for service recovery

Adds support to set service recovery for the Icinga Agent and Icinga for Windows service, to restart them in case of a crash or error
2022-05-12 16:27:21 +02:00
Lord Hepipud
b512e26715 Adds support for service recovery 2022-05-12 16:24:11 +02:00
Lord Hepipud
5dfc8ac16b
Merge pull request #520 from Icinga:fix/adds_component_import_for_dev_tools
Fix: Missing component import func on dev tools

Adds missing Import-IcingaPowerShellComponent function while creating new components by using the developer tools
2022-05-12 10:36:54 +02:00
Lord Hepipud
1648205744 Fixes missing component import func on dev tools 2022-05-12 10:36:01 +02:00
Lord Hepipud
222a10fa84
Merge pull request #519 from Icinga:fix/import_ifw_components_on_framework_loading
Fix: Missing loading for Icinga for Windows modules

Fixes missing loading of Icinga for Windows modules, which is required to ensure an Icinga for Windows environment is providing all commands and variables to a session, allowing other modules to access these information
2022-05-12 08:54:45 +02:00
Lord Hepipud
28efe62548 Fixes missing loading for IfW modules 2022-05-12 08:11:45 +02:00
Lord Hepipud
0eb008db0b Sets next target version 2022-05-02 18:51:10 +02:00
Lord Hepipud
bc70537e6e
Merge pull request #512 from t3easy/patch-1
Fix Unregister Background Daemons example
2022-05-02 07:42:30 +02:00
Lord Hepipud
a7e0bbed4b
Merge pull request #516 from Icinga:fix/removes_rootmodule_from_manifest_template
Fix: Removes RootModule from Manifest file

With the new module isolation, we no longer require the `RootModule` entry for manifest files.
2022-04-27 14:03:55 +02:00
Lord Hepipud
42d45c4d7c Removes RootModule entry from Manifest template 2022-04-27 14:02:55 +02:00
Lord Hepipud
20cda631f8
Merge pull request #515 from Icinga:fix/windows_2012_console_freeze_during_imc_install
Fix: Console freezes on Windows 2012 R2 during IMC installation
2022-04-27 13:45:00 +02:00
Lord Hepipud
7eba933f2f Fixes console freezes on IMC install on 2012R2 2022-04-27 13:43:48 +02:00
Lord Hepipud
cb613f34c5
Merge pull request #514 from Icinga:feature/improve_module_isolation
Features: Adds module isolation support

Improves writing and publishing of modules, by ensuring that only certain functions are exported and modules have an own compilation file for loading.

This reduces load times, execution time and in addition allows modules to be isolated from each other, making it impossible to hijack certain code for not exported functions.
2022-04-27 11:21:06 +02:00
Lord Hepipud
fa0132f13d Adds feature to improve module isolation 2022-04-27 11:20:35 +02:00
Lord Hepipud
89f4ac7cb5
Merge pull request #494 from Icinga:fix/gc_collection_for_every_rest_connection
Fix: GC collection on every REST call

Fixes GC collection with `Optimize-IcingaForWindowsMemory` for every incoming REST connection call
2022-04-27 08:52:43 +02:00
Jan Kiesewetter
b0d3bc5d67
Fix Unregister Background Daemons example 2022-04-26 15:22:40 +02:00