This commit is contained in:
Lord Hepipud 2020-07-13 15:06:01 +02:00
commit f0b5dbd971
2 changed files with 14 additions and 1 deletions

View file

@ -11,6 +11,15 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/7?closed=1)
## 1.1.2 (2020-07-01)
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/9?closed=1)
### Bugfixes
* [#74](https://github.com/Icinga/icinga-powershell-framework/issues/74) Disabling Agent features for last list item is not possible
* [#75](https://github.com/Icinga/icinga-powershell-framework/issues/75) 'notification' feature is not disabled during installation
## 1.1.1 (2020-06-18)
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/8?closed=1)

View file

@ -10,6 +10,7 @@ function Start-IcingaAgentInstallWizard()
$AddGlobalTemplates = $null,
[string]$PackageSource,
[string]$AgentVersion,
[string]$InstallDir,
$AllowVersionChanges,
$UpdateAgent = $null,
$AddFirewallRule = $null,
@ -79,6 +80,9 @@ function Start-IcingaAgentInstallWizard()
$Result = Set-IcingaWizardArgument -DirectorArgs $DirectorArgs -WizardArg 'AgentVersion' -Value $AgentVersion -InstallerArguments $InstallerArguments;
$AgentVersion = $Result.Value;
$InstallerArguments = $Result.Args;
$Result = Set-IcingaWizardArgument -DirectorArgs $DirectorArgs -WizardArg 'InstallDir' -Value $InstallDir -InstallerArguments $InstallerArguments;
$InstallDir = $Result.Value;
$InstallerArguments = $Result.Args;
$Result = Set-IcingaWizardArgument -DirectorArgs $DirectorArgs -WizardArg 'CAPort' -Value $CAPort -InstallerArguments $InstallerArguments;
$CAPort = $Result.Value;
$InstallerArguments = $Result.Args;
@ -540,7 +544,7 @@ function Start-IcingaAgentInstallWizard()
}
if ($RunInstaller) {
if ((Install-IcingaAgent -Version $AgentVersion -Source $PackageSource -AllowUpdates $AllowVersionChanges) -Or $Reconfigure) {
if ((Install-IcingaAgent -Version $AgentVersion -Source $PackageSource -AllowUpdates $AllowVersionChanges -InstallDir $InstallDir) -Or $Reconfigure) {
Reset-IcingaAgentConfigFile;
Move-IcingaAgentDefaultConfig;
Set-IcingaAgentNodeName -Hostname $Hostname;