cobbler安装

本身建立yum仓库python

# tar zxvf puppet-cobbler.tar.gzlinux

# rm -rf /root/repodataweb

# yum install createrepo -yvim

# createrepo /root/puppet-cobblerapp

# ls /root/puppet-cobbler/repodata    //已经从新生成ide

   有repodata的目录就能够做为yum的容器url

1、安装配置cobblerspa

一、安装依赖firefox

    # vim /etc/yum.repos.d/cobbler.reporest

[cobbler]

name=cobbler

baseurl=file:///root/puppet-cobbler

enabled=1

gpgcheck=0

    # vim /etc/yum.repos.d/local.repo

    [base]

name=base

baseurl=file:///mnt/cdrom

enabled=1

gpgcheck=0

[HA]

name=HA

baseurl=file:///mnt/cdrom/HighAvailability

enabled=1

gpgcheck=0

    # yum clean all

    # yum list

    # yum install cobbler dhcp httpd xinetd tftp-server python pykickstart cman -y


二、启动服务

    # /etc/init.d/cobblerd start

三、检查cobbler

    # cobbler check

    # /etc/init.d/httpd start

    # cobbler check   //再次检查

   解决一、2

    # vim /etc/cobbler/settings

server: 172.16.254.139      //注意:冒号后面必须有空格

next_server: 172.16.254.139

   解决3

       有网的状况下

  cobbler get-loaders

       没有网

  # cp /root/loaders/* /var/lib/cobbler/loaders/

   解决4:

       # chkconfig rsync on

       # chkconfig tftp  on

       # /etc/init.d/xinetd restart

   解决5:

       # yum install debmirror -y

      4 : comment out 'dists' on /etc/debmirror.conf for proper debian support

      5 : comment out 'arches' on /etc/debmirror.conf for proper debian support

       # vim /etc/debmirror.conf   注释以下两行

          #@arches="i386";

   #@dists="sid";

   解决6:openssl

       # openssl passwd -1 -salt 'uplook' 'redhat'

随机种子    密码

 $1$uplook$cvLlwYSq8wgmj/bkSoZ6G/

       # vim /etc/cobbler/settings  修改以下行

  default_password_crypted: "$1$uplook$cvLlwYSq8wgmj/bkSoZ6G/"

四、重启cobbler服务

   # /etc/init.d/cobblerd restart

   # cobbler check

The following are potential configuration items that you may want to fix:


1 : since iptables may be running, ensure 69, 80/443, and 25151 are unblocked


Restart cobblerd and then run 'cobbler sync' to apply changes.

    # /etc/init.d/iptables stop

    # chkconfig iptables off

    # cobbler check

No configuration problems found.  All systems go. //配置已无问题

五、配置dhcp

     # vim /etc/dhcp/dhcpd.conf

subnet 172.16.0.0 netmask 255.255.0.0 {

      range 172.16.254.10 172.16.254.20;

      next-server 172.16.254.139;

      filename "/pxelinux.0";

         }

     # /etc/init.d/dhcpd restart

六、导入光盘映像文件

     # cobbler import --path=/mnt/cdrom/ --name=rhel6u4_x86_64

     # cobbler sync     //同步配置

七、客户端验证


2、安装cobbler-web 

    一、安装

       # yum install cobbler-web -y

    二、设置用户名密码

       # htdigest /etc/cobbler/users.digest "Cobbler" cobbler

    三、修改配置文件

       # vim /etc/cobbler/modules.conf

           [authentication]

   module = authn_configfile

    四、重启服务

# /etc/init.d/cobblerd restart

    五、访问web界面

# firefox 172.16.254.200/cobbler_web &

相关文章
相关标签/搜索