本身建立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 &