mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Add support to install plugins during setup wizard
This commit is contained in:
parent
41ca4d86bf
commit
433b1122cb
1 changed files with 14 additions and 1 deletions
|
|
@ -34,7 +34,9 @@ function Start-IcingaAgentInstallWizard()
|
|||
[bool]$SkipDirectorQuestion = $FALSE,
|
||||
[string]$DirectorUrl,
|
||||
[string]$SelfServiceAPIKey = $null,
|
||||
$OverrideDirectorVars = $null
|
||||
$OverrideDirectorVars = $null,
|
||||
$InstallFrameworkPlugins = $null,
|
||||
$PluginsUrl = $null
|
||||
);
|
||||
|
||||
[array]$InstallerArguments = @();
|
||||
|
|
@ -363,6 +365,17 @@ function Start-IcingaAgentInstallWizard()
|
|||
}
|
||||
}
|
||||
|
||||
if ($null -eq $InstallFrameworkPlugins) {
|
||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you want to install the Icinga Plugins?' -Default 'y').result -eq 1) {
|
||||
$result = Install-IcingaFrameworkPlugins -PluginsUrl $PluginsUrl;
|
||||
$PluginsUrl = $result.PluginsUrl;
|
||||
$InstallerArguments += "-InstallFrameworkPlugins 1";
|
||||
$InstallerArguments += "-$PluginsUrl '$PluginsUrl'";
|
||||
} else {
|
||||
$InstallerArguments += "-InstallFrameworkPlugins 0";
|
||||
}
|
||||
}
|
||||
|
||||
if ($null -eq $InstallFrameworkService) {
|
||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you want to install the PowerShell Framework as a Service?' -Default 'y').result -eq 1) {
|
||||
$result = Get-IcingaFrameworkServiceBinary;
|
||||
|
|
|
|||
Loading…
Reference in a new issue