Relocating reconfigure menu entry

This commit is contained in:
Lord Hepipud 2021-08-06 13:54:47 +02:00
parent 4bb17aadae
commit 351848dc6f
3 changed files with 12 additions and 10 deletions

View file

@ -21,6 +21,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#305](https://github.com/Icinga/icinga-powershell-framework/pull/305) Adds a new Cmdlet to test if functions with `Add-Type` are already present inside the current scope of the shell * [#305](https://github.com/Icinga/icinga-powershell-framework/pull/305) Adds a new Cmdlet to test if functions with `Add-Type` are already present inside the current scope of the shell
* [#306](https://github.com/Icinga/icinga-powershell-framework/pull/306) Adds new Cmdlet `Exit-IcingaThrowCritical` to throw critical exit with a custom message, either by force or by using string filtering and adds storing of plugin exit codes internally * [#306](https://github.com/Icinga/icinga-powershell-framework/pull/306) Adds new Cmdlet `Exit-IcingaThrowCritical` to throw critical exit with a custom message, either by force or by using string filtering and adds storing of plugin exit codes internally
* [#314](https://github.com/Icinga/icinga-powershell-framework/pull/314) Adds support to configure on which address TCP sockets are created on, defaults to `loopback` interface * [#314](https://github.com/Icinga/icinga-powershell-framework/pull/314) Adds support to configure on which address TCP sockets are created on, defaults to `loopback` interface
* [#316](https://github.com/Icinga/icinga-powershell-framework/pull/316) The reconfigure menu was previously present inside the Icinga Agent sub-menu and is now moved to the main installation menu for the Management Console
## 1.5.2 (2021-07-09) ## 1.5.2 (2021-07-09)

View file

@ -8,7 +8,7 @@ function Show-IcingaForWindowsInstallerMenuInstallWindows()
[switch]$Advanced = $FALSE [switch]$Advanced = $FALSE
); );
if ($null -eq (Get-IcingaPowerShellConfig -Path 'Framework.Config.Swap')) { if ($null -eq (Get-IcingaPowerShellConfig -Path 'Framework.Config.Swap') -And $null -eq (Get-IcingaPowerShellConfig -Path 'Framework.Config.Live')) {
Show-IcingaForWindowsInstallerMenuSelectConnection; Show-IcingaForWindowsInstallerMenuSelectConnection;
return; return;
} }
@ -22,9 +22,16 @@ function Show-IcingaForWindowsInstallerMenuInstallWindows()
'Help' = 'Start a new configuration and truncate all information stored on the current swap file. This will only modify your production if you hit "Start installation" at the end'; 'Help' = 'Start a new configuration and truncate all information stored on the current swap file. This will only modify your production if you hit "Start installation" at the end';
}, },
@{ @{
'Caption' = 'Continue configuration'; 'Caption' = 'Continue configuration';
'Command' = 'Show-IcingaForWindowsInstallerMenuContinueConfiguration'; 'Command' = 'Show-IcingaForWindowsInstallerMenuContinueConfiguration';
'Help' = 'Continue with the previous configuration swap file.'; 'Help' = 'Continue with the previous configuration swap file.';
'Disabled' = ([bool]($null -eq (Get-IcingaPowerShellConfig -Path 'Framework.Config.Swap')));
},
@{
'Caption' = 'Reconfigure Environment';
'Command' = 'Invoke-IcingaForWindowsManagementConsoleReconfigureAgent';
'Help' = 'Load the current configuration of Icinga for Windows to modify it.';
'Disabled' = ([bool]($null -eq (Get-IcingaPowerShellConfig -Path 'Framework.Config.Live')));
} }
) ` ) `
-DefaultIndex $DefaultInput ` -DefaultIndex $DefaultInput `

View file

@ -17,12 +17,6 @@ function Show-IcingaForWindowsMenuManageIcingaAgent()
'Help' = 'Allows you to install Icinga for Windows with all required components and options'; 'Help' = 'Allows you to install Icinga for Windows with all required components and options';
'Disabled' = ($null -eq $IcingaService -Or (-Not $AdminShell)); 'Disabled' = ($null -eq $IcingaService -Or (-Not $AdminShell));
}, },
@{
'Caption' = 'Reconfigure Installation';
'Command' = 'Invoke-IcingaForWindowsManagementConsoleReconfigureAgent';
'Help' = 'Load the current applied configuration for your Icinga Agent and modify the values';
'Disabled' = ($null -eq (Get-IcingaPowerShellConfig -Path 'Framework.Config.Live'));
},
@{ @{
'Caption' = 'Read Icinga Agent Log File'; 'Caption' = 'Read Icinga Agent Log File';
'Command' = 'Show-IcingaForWindowsMenuManageIcingaAgent'; 'Command' = 'Show-IcingaForWindowsMenuManageIcingaAgent';