日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Foreman安装配置

發(fā)布時間:2025/3/21 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Foreman安装配置 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Foreman安裝配置
官方網(wǎng)站: https://theforeman.org

環(huán)境: CentOS7.2 puppet-3.8.7 foreman-1.13

一.配置yum源 https://theforeman.org/manuals/1.13/quickstart_guide.html https://theforeman.org/manuals/1.13/index.html 這里配置了依賴的幾個國內(nèi)源以加速下載 cat >/etc/yum.repos.d/foreman-extra.repo <<EOF

[epel]

name=epel

baseurl=http://mirrors.aliyun.com/epel/7/x86_64

enabled=1

gpgcheck=0

[sclo-sclo]

name=sclo-sclo

baseurl=http://mirrors.aliyun.com/centos/7/sclo/x86_64/sclo

enabled=1

gpgcheck=0

[sclo-rh]

name=sclo-rh

baseurl=http://mirrors.aliyun.com/centos/7/sclo/x86_64/rh

enabled=1

gpgcheck=0

[foreman-nightly]

name=foreman-nightly

baseurl=http://yum.theforeman.org/nightly/el7/x86_64/

enabled=1

gpgcheck=0

EOF rpm -ivh?https://yum.theforeman.org/releases/1.13/el7/x86_64/foreman-release.rpm yum -y install?rubygem-oauth tfm-rubygem-passenger-native?tfm-rubygem-foreman_setup yum -y install foreman foreman-proxy foreman-cli foreman-postgresql foreman-installer

二.初始化 參考文檔:http://517sou.net/archives/foreman-企業(yè)級配置管理解決方案/ 1.配置hosts echo '192.168.8.202 node5.example.com' >>/etc/hosts 2.foreman-installer

[root@node5 ~]# foreman-installer?--foreman-admin-username=admin --foreman-admin-password=“foreman”

Installing ? ? ? ? ? ? Done ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%] [.................]

??Success!

? * Foreman is running at https://node5.example.com

? ? ? Initial credentials are admin / “foreman”

? * Foreman Proxy is running at https://node5.example.com:8443

? * Puppetmaster is running at port 8140

?

? The full log is at /var/log/foreman-installer/foreman.log

提示:? foreman-installer默認(rèn)會安裝并start,enable httpd,postgresql-server,passenger等依賴組件。 foreman默認(rèn)用戶名和密碼可以通過以上參數(shù)來指定,如不指定則用戶名為admin,密碼為隨機字符串 注意: puppetmaster在安裝了foreman后會由foreman組件來接管啟動停止,systemd啟動時會報地址占用

[root@node5 ~]# systemctl status foreman-proxy

foreman-proxy.service - Foreman Proxy

?? Loaded: loaded (/usr/lib/systemd/system/foreman-proxy.service; enabled; vendor preset: disabled)

?? Active: active (running) since 日 2016-10-30 00:17:23 CST; 18min ago

?Main PID: 3768 (ruby)

?? CGroup: /system.slice/foreman-proxy.service

?? ? ? ? ? └─3768 ruby /usr/share/foreman-proxy/bin/smart-proxy


10月 30 00:17:22 node5.example.com systemd[1]: Starting Foreman Proxy...

10月 30 00:17:23 node5.example.com systemd[1]: PID file /run/foreman-proxy/foreman-proxy.pid ...rt.

10月 30 00:17:23 node5.example.com systemd[1]: foreman-proxy.service: Supervising process 376...ts.

10月 30 00:17:23 node5.example.com systemd[1]: Started Foreman Proxy.

Hint: Some lines were ellipsized, use -l to show in full.



三.WebUI https://node5.example.com









https://node5.example.com:8443

轉(zhuǎn)載于:https://www.cnblogs.com/lixuebin/p/10814004.html

總結(jié)

以上是生活随笔為你收集整理的Foreman安装配置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。