Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Can't use private IcingaRepository

オープン
#474 コメント 12 件 リアクション 0 件 担当者 1 名 GitHub で見る

@LordHepipud がすでに取り組んでいます。

2022年2月10日 から。

評価

この issue はまだ評価されていません。

説明

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)
主要言語
PowerShell
スター
86
フォーク
34
平均マージ
4日 11時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Icinga/icinga-powershell-framework のほかの issue

Icinga/icinga-powershell-framework の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。