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)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Demon_接金币(三个掉落物品预设体,
- 下一篇: 关于大小型项目如何最大限度提高WebAP