这篇文章主要为大家详细介绍了foreman1.7 安装详细教程,安装步骤相对于官方非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下。

Foreman安装

系统环境: Selinux & iptabls disabled

rhel 6.5

Puppet 3.7.5

Ruby 1.8.7

Foreman 1.7

官方安装教程:http://theforeman.org/manuals/1.7/index.html#2.Quickstart

安装puppet,puppet-server

[puppet]

name=puppet

baseurl=http://yum.puppetlabs.com/el/6Server/products/x86_64/

gpgcheck=0

[ruby]

name=ruby

baseurl=http://yum.puppetlabs.com/el/6Server/dependencies/x86_64/

gpgcheck=0

yum install puppet puppet-server

2. 添加扩展yum 源

rpm -ivhhttp://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

yum -y installhttp://yum.theforeman.org/releases/1.7/el6/x86_64/foreman-release.rpm

3. 安装foreman-installer

yum -y install foreman-installer

4.scl源:不然安装会提示缺少好多rubygem193*的包;

[scl]

name=ruby193

baseurl=http://mirror.centos.org/centos/6/SCL/x86_64/

gpgcheck=0

5. 安装foreman:

foreman-installer

#最后安装成功:密码是随机的,登上之后马上改。

[root@server4yum.repos.d]# foreman-installer

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

Success!

* Foreman is running athttps://server4.example.com

Initial credentials are admin / eprXbnUy4mRCuRUc

* Foreman Proxy is running athttps://server4.example.com:8443

* Puppetmaster is running at port 8140

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

总结:安装过程中会出现各种问题,比如之前我安装的时候,就是因为pgsql的原因,最后添加smar-proxy 怎么也添加不上,最后也没解决!还有注意看日志/var/log/foreman-installer/foreman-installer.log

看完上诉内容,你们掌握foreman1.7 安装的方法了吗?如果安装过程遇到问题或想了解更多相关内容,欢迎关注亿速云行业资讯频道!