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