mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes Director Self-Service no Agent install
This commit is contained in:
parent
43e71832ea
commit
824c4f2da2
2 changed files with 22 additions and 6 deletions
|
|
@ -7,6 +7,14 @@ documentation before upgrading to a new release.
|
||||||
|
|
||||||
Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed).
|
Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed).
|
||||||
|
|
||||||
|
## 1.6.1 (2021-09-15)
|
||||||
|
|
||||||
|
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/21?closed=1)
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
* [#361](https://github.com/Icinga/icinga-powershell-framework/issues/361) Fixes IMC freeze on Icinga Director Self-Service installation, in case no Agent installation set on Self-Service API config
|
||||||
|
|
||||||
## 1.6.0 (2021-09-07)
|
## 1.6.0 (2021-09-07)
|
||||||
|
|
||||||
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/15?closed=1)
|
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/15?closed=1)
|
||||||
|
|
|
||||||
|
|
@ -69,15 +69,15 @@ function Resolve-IcingaForWindowsManagementConsoleInstallationDirectorTemplate()
|
||||||
}
|
}
|
||||||
|
|
||||||
# No we need to identify which host selection is matching our config
|
# No we need to identify which host selection is matching our config
|
||||||
$HostnameSelection = -1;
|
$HostnameSelection = 1;
|
||||||
$InstallPluginsSelection = -1;
|
$InstallPluginsSelection = 0;
|
||||||
$InstallServiceSelection = -1;
|
$InstallServiceSelection = 0;
|
||||||
$WindowsFirewallSelection = 1;
|
$WindowsFirewallSelection = 1;
|
||||||
|
$AgentVersion = 'release';
|
||||||
|
$InstallIcingaAgent = 0;
|
||||||
|
|
||||||
$ServiceUserName = $DirectorConfig.icinga_service_user;
|
$ServiceUserName = $DirectorConfig.icinga_service_user;
|
||||||
$AgentPackageSelection = 1; #Always use custom source
|
$AgentPackageSelection = 1; #Always use custom source
|
||||||
$AgentPackageSource = $DirectorConfig.download_url;
|
|
||||||
$AgentVersion = $DirectorConfig.agent_version;
|
|
||||||
$IcingaPort = $DirectorConfig.agent_listen_port;
|
$IcingaPort = $DirectorConfig.agent_listen_port;
|
||||||
$GlobalZones = @();
|
$GlobalZones = @();
|
||||||
$IcingaParents = @();
|
$IcingaParents = @();
|
||||||
|
|
@ -86,6 +86,12 @@ function Resolve-IcingaForWindowsManagementConsoleInstallationDirectorTemplate()
|
||||||
$MasterAddress = '';
|
$MasterAddress = '';
|
||||||
$Ticket = '';
|
$Ticket = '';
|
||||||
|
|
||||||
|
if (Test-IcingaPowerShellConfigItem -ConfigObject $DirectorConfig -ConfigKey 'agent_version') {
|
||||||
|
$AgentVersion = $DirectorConfig.agent_version;
|
||||||
|
} else {
|
||||||
|
$InstallIcingaAgent = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if ($DirectorUrl.ToLower().Contains('https://') -Or $DirectorUrl.ToLower().Contains('http://')) {
|
if ($DirectorUrl.ToLower().Contains('https://') -Or $DirectorUrl.ToLower().Contains('http://')) {
|
||||||
$MasterAddress = $DirectorUrl.Split('/')[2];
|
$MasterAddress = $DirectorUrl.Split('/')[2];
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -163,6 +169,7 @@ function Resolve-IcingaForWindowsManagementConsoleInstallationDirectorTemplate()
|
||||||
# Do not install
|
# Do not install
|
||||||
$InstallServiceSelection = 1;
|
$InstallServiceSelection = 1;
|
||||||
} else {
|
} else {
|
||||||
|
# Install the service from our repository
|
||||||
$InstallServiceSelection = 0;
|
$InstallServiceSelection = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -170,7 +177,7 @@ function Resolve-IcingaForWindowsManagementConsoleInstallationDirectorTemplate()
|
||||||
# Do not install
|
# Do not install
|
||||||
$InstallPluginsSelection = 1;
|
$InstallPluginsSelection = 1;
|
||||||
} else {
|
} else {
|
||||||
# TODO: This is currently not supported. We use the "default" config for installing from GitHub by now
|
# Install the plugins from our repository
|
||||||
$InstallPluginsSelection = 0;
|
$InstallPluginsSelection = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -202,6 +209,7 @@ function Resolve-IcingaForWindowsManagementConsoleInstallationDirectorTemplate()
|
||||||
Show-IcingaForWindowsInstallerMenuSelectCertificate -Automated -DefaultInput '1';
|
Show-IcingaForWindowsInstallerMenuSelectCertificate -Automated -DefaultInput '1';
|
||||||
Show-IcingaForWindowsInstallerMenuEnterIcingaTicket -Automated -Value $Ticket;
|
Show-IcingaForWindowsInstallerMenuEnterIcingaTicket -Automated -Value $Ticket;
|
||||||
|
|
||||||
|
Show-IcingaForWindowsInstallerMenuSelectInstallIcingaAgent -Automated -DefaultInput $InstallIcingaAgent;
|
||||||
Show-IcingaForWindowsInstallationMenuEnterIcingaAgentVersion -Automated -Value $AgentVersion;
|
Show-IcingaForWindowsInstallationMenuEnterIcingaAgentVersion -Automated -Value $AgentVersion;
|
||||||
|
|
||||||
Show-IcingaForWindowsManagementConsoleInstallationDirectorRegisterHost -Automated;
|
Show-IcingaForWindowsManagementConsoleInstallationDirectorRegisterHost -Automated;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue