Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Pre-set Packages Repo during install is overwritten with default value #730

Open
Wintermute2k6 opened this issue May 10, 2024 · 0 comments
Assignees
Labels
Bug There is an issue present
Milestone

Comments

@Wintermute2k6
Copy link

Issue Description

With a altered Pre-set Param [string]$IcingaRepository = 'https://packages.icinga.com/IcingaForWindows/stable/ifw.repo.json' inside of IcingaForWindows.ps1 and also during the Setup Phase the Icinga for Windows installer might fall back to the original default value https://packages.icinga.com/IcingaForWindows/stable/ifw.repo.json.

It defaults in the Base Install menu to the following:

===============================================================================================

[0] Connection => Connecting from this system
[1] Certificate => Sign certificate manually on the Icinga CA master
[2] Hostname => "example.host.com": FQDN (lowercase)
[3] ParentZone => "master"
[4] ParentNodes => "example.master1.com", "example.master2.com"
[5] ParentAddress for "example.master1.com" => "191.168.178.1"
[6] ParentAddress for "example.master2.com" => "191.168.178.2"
[7] Port => "5665"
[8] WindowsFirewall => Do not open Windows Firewall for incoming Icinga connections
[9] ForceCertificateCreation => Do not enforce certificate creation
[10] GlobalZones => Add "director-global" and "global-templates" zones
[11] CustomZones => ""
[12] AgentVersion => "release"
[13] InstallAgent => Install Icinga Agent
[14] AgentDirectory => "C:\Program Files\ICINGA2"
[15] AgentUser => "NT Authority\NetworkService"
[16] InstallPlugins => Install plugins
[17] InstallService => Install Icinga for Windows Service
[18] WindowsServiceDirectory => "C:\Program Files\icinga-framework-service"
[19] StableRepository => "https://packages.icinga.com/IcingaForWindows/stable/ifw.repo.json"
[20] InstallJEAProfile => Do not install JEA Profile
[21] CAServer => "191.168.178.1"
[22] InstallApiChecks => Install Api-Checks feature
[23] ServiceRecovery => Enable automatic service recovery
[24] DirectorSelfServiceConfig => "{ "address": "$ifw.hostaddress$" }"

[x] Exit [a] Hide Advanced [c] Continue [h] Help [l] Commands [m] Main [p] Previous

Input (Default c):

===============================================================================================

You need to set-again on [19] the correct Stable Repository .. even if it was set also before in the Settings in Stable Repository..


** Icinga for Windows Management Console **
** Copyright (c) 2024 Icinga GmbH | MIT **
** User environment somewhere\user **
** Icinga PowerShell Framework v1.12.3 **


Please enter the URL/Path for the location of your "Icinga Stable" Repository:

"https://example.own.reposerver/IcingaForWindows/stable/ifw.repo.json"

[x] Exit [c] Continue [d] Delete [h] Help [l] Commands [m] Main [p] Previous

Input (Default c) (1/1):

===============================================================================================

Probable Solution

It should at least be reflected that change might be needed instead of hiding the default value of the repo in the Install Command:


** Icinga for Windows Management Console **
** Copyright (c) 2024 Icinga GmbH | MIT **
** User environment somewhere\user **
** Icinga PowerShell Framework v1.12.3 **


Here is your configuration command for Icinga for Windows:

Install-Icinga -InstallCommand '{"IfW-ParentNodes":{"Values":["example.master1.com","example.master2.com"]},"IfW-Hostname":{"Selection":"1"},"IfW-Connection":{"Selection":"0"},"IfW-ParentZone":{"Values":["master"]},"IfW-ParentAddress":{"Values":{"example.master2.com":["192.168.178.2"],"example.master1.com":["192.168.178.1"]}}}'

[x] Exit [c] Continue [h] Help [l] Commands [m] Main [p] Previous

Input (Default c) (1/1):

@LordHepipud LordHepipud added the Bug There is an issue present label May 10, 2024
@LordHepipud LordHepipud added this to the v1.13.0 milestone May 10, 2024
@LordHepipud LordHepipud self-assigned this May 10, 2024
@LordHepipud LordHepipud modified the milestones: v1.13.0, v2.0.0 Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug There is an issue present
Projects
None yet
Development

No branches or pull requests

2 participants