cobbler部署

setenforce 0

yum -y install http://mirrors.163.com/centos/7/extras/x86_64/Packages/epel-release-7-9.noarch.rpm 
yum install cobbler cobbler-web dhcp tftp-server pykickstart httpd xinetd -y 
systemctl start xinetd.service 
systemctl enable xinetd.service 
systemctl start httpd 
systemctl enable httpd 
systemctl start cobblerd.service 
systemctl enable cobblerd.service

HostIP=$(/sbin/ip addr show dev eth1 | sed -n 3p | awk '{print $2}'| awk -F\/ '{print $1}')
sed -i 's/^\(server:\).*$/\1 '$HostIP'/g' /etc/cobbler/settings
sed -i 's/^\(next_server:\).*$/\1 '$HostIP'/g' /etc/cobbler/settings
openssl passwd -1 -salt '' '123456'
将default_password_crypted: 修改

systemctl start rsyncd.service 
systemctl enable rsyncd.service
cobbler get-loaders
yum -y install debmirror cman

systemctl restart cobblerd.service  
cobbler sync
 

  

posted @ 2018-04-04 21:11  jabbok  阅读(136)  评论(0编辑  收藏  举报