cobbler实现全自动化装机
[root@localhost ~]# yum -y install epel-release
[root@localhost ~]# yum install cobbler cobbler-web dhcp tftp-server pykickstart httpd rsync xinetd -y
[root@localname ~]# vim /etc/cobbler/settings
[root@localname ~]# systemctl start httpd.service
[root@localname ~]# systemctl start cobblerd.service
[root@localname ~]# systemctl stop firewalld.service
[root@localname ~]# setenforce 0
[root@localname ~]# cobbler check
[root@localname ~]# vim /etc/xinetd.d/tftp
[root@localname ~]# systemctl enable rsyncd.service
[root@localname ~]# systemctl restart cobblerd.service
[root@localname ~]# cobbler check
[root@localname ~]# openssl passwd -1 -salt ‘123’ ‘123’
$1
123
123
123nE5gIYTYiF1PIXVOFjQaW/
localname ~]# vim /etc/cobbler/settings
[root@localname ~]# vim /etc/cobbler/settings
[root@localname ~]# systemctl start rsyncd
[root@localname ~]# systemctl restart xinetd.service
[root@localname ~]# vim /etc/cobbler/dhcp.template
[root@localname ~]# cobbler sync
[root@localname ~]# cobbler get-loaders
[root@localname ~]# systemctl start dhcpd
[root@localname ~]# systemctl start cobblerd
[root@localname ~]# systemctl start xinetd
[root@localname ~]# mount /dev/sr0 /mnt
[root@localname ~]# cobbler import --path=/mnt --name=CentOS-7-x86_64 --arch=x86_64
[root@localname ~]# cd /var/www/cobbler/ks_mirror/
[root@localhost ks_mirror]# yum install tree -y[root@localhost ks_mirror]# tree /var/lib/tftpboot/images
[root@localhost ks_mirror]# systemctl restart cobblerd.service
[root@localhost ks_mirror]# systemctl restart dhcpd.service
[root@localhost ks_mirror]# systemctl restart xinetd.service
[root@localhost ks_mirror]# systemctl restart httpd.service