更改預設 Foreman URI

更改預設 Foreman URI

我剛剛在 RHEL 7.1 VM 上安裝了最新的 foreman 實例。現在已安裝,httpd 設定已更改,因此 foreman URI 為 http(s)://(server)/。

這破壞了伺服器上運行的所有其他內容,例如 nagios。

我嘗試將預設的 foreman 配置更改為 http(s)://(server)/foreman 但此時沒有任何效果。以前相同的問題Foreman 中的服務目錄列表&Foreman 安裝後,我的 Icinga 介面無法運作 被問到。但對於如何解決這個應該是共同問題的問題卻一直沒有答案。

話雖如此,我曾經嘗試使用

Alias /foreman "/usr/share/foreman/public"

在 05-foreman.conf 和 05-foreman-ssl.conf 的設定檔中沒有運氣。

答案1

我已經找到如何設定 foreman 使用 http(s)://(server>/foreman.

/etc/foreman/foreman-installer/answers.yaml

包含指定 foreman 將使用的 URL 的選項。該檔案會覆蓋安裝過程的預設設定。執行 /usr/sbin/foreman-installer 時可以提供覆蓋,有問題的覆蓋是:

/usr/sbin/foreman-installer --foreman-foreman-url

相關內容