cobbler安装

自己创建yum仓库

# tar zxvf puppet-cobbler.tar.gz

# rm -rf /root/repodata

# yum install createrepo -y

# createrepo /root/puppet-cobbler

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

   有repodata的目录就可以作为yum的容器

一、安装配置cobbler

1、安装依赖

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

[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


2、启动服务

    # /etc/init.d/cobblerd start

3、检查cobbler

    # cobbler check

    # /etc/init.d/httpd start

    # cobbler check   //再次检查

   解决1、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/"

4、重启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. //配置已无问题

5、配置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

6、导入光盘映像文件

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

     # cobbler sync     //同步配置

7、客户端验证


二、安装cobbler-web 

    1、安装

       # yum install cobbler-web -y

    2、设置用户名密码

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

    3、修改配置文件

       # vim /etc/cobbler/modules.conf

           [authentication]

   module = authn_configfile

    4、重启服务

# /etc/init.d/cobblerd restart

    5、访问web界面

# firefox 172.16.254.200/cobbler_web &


你可能感兴趣的:(File,仓库,cobbler)