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

  1. 安装puppetpuppet-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

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

[[email protected]]# 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

 

 

 


你可能感兴趣的:(安装,yum,foreman)