Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Can't use private IcingaRepository

Aperta
#474 12 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@LordHepipud ci sta già lavorando.

Dal 10/2/2022.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Documentation

Hello,

When we try to install icinga for windows with a private repo of Icinga, the installation still try to use the default repository.

Can you help us with this process ?

Expected Behavior

Install Icinga with our private repository.
Following the documentation of Automated installation with InstallCommand and own IcingaRepository

Current Behavior

When trying to install Icinga for Windows in offline mode, it still try to download from the internet.

Steps to Reproduce (for bugs)

  1. Create a sync repository on a windows server with ;
Sync-IcingaRepository `
    -Name 'Icinga Stable Local' `
    -Path 'E:\Repo_icinga\icinga_stable' `
    -RemotePath '\\WINSERVER\Repo_icinga\icinga_stable' `
    -Source 'https://packages.icinga.com/IcingaForWindows/stable'

And make sure it's enable:
Enable-IcingaRepository -Name 'Icinga Stable Local'

  1. Set the permission of the shared folder Repo_icinga

  2. Create a powershell script based on the one on the installation page:

[Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11';
$ProgressPreference                         = 'SilentlyContinue';
[string]$ScriptFile                         = 'C:\Users\Public\IcingaForWindows.ps1';

Invoke-WebRequest `
    -UseBasicParsing `
    -Uri '\\WINSERVER\Repo_icinga\IcingaForWindows.ps1' `
    -OutFile $ScriptFile;

& $ScriptFile `
    -ModuleDirectory 'C:\Program Files\WindowsPowerShell\Modules\' `
    -InstallCommand '{"IfW-DirectorSelfServiceKey":{"Values":["AAAAABBBBCCCCCDDDDD"]},"IfW-DirectorUrl":{"Values":["http://ICINGA_SERVER/icingaweb2/director"]}}' `
    -IcingaRepository '\\WINSERVER\Repo_icinga\icinga_stable\ifw.repo.json';
  1. On another server we execute the script.

It download and launch correctly the IcingaForWindows.ps1.

But then try to download on the internet:
image

Context

We have a bunch of server without internet connection and therefore can't be added to our monitoring system.

Thank you for your help.

Your Environment

  • PowerShell Version used : 5.1
  • Operating System and version: Windows server 2016
  • Latest version of Icinga as of today (10/02)
Lingua principale
PowerShell
Stelle
86
Fork
34
Merge medio
4g 11h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Icinga/icinga-powershell-framework

Tutte le issue di Icinga/icinga-powershell-framework

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.