cobbler
一.部署前提
要用系统自带的源,其他的不可用,下载不了cobbler
安装epel源
yum -y install epel-release
#查看cobbler
[root@localhost ~]# dnf module list |grep cobbler
cobbler 3 default [d] Versatile Linux deployment server cobbler 3.3 default Versatile Linux deployment server
cobbler
#开启选择的cobbler版本
[root@localhost ~]# dnf module enable cobbler:3
[root@localhost ~]# systemctl disable --now firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost ~]# firewall-cmd --state
not running
[root@localhost ~]# sed -i "s/=enforcing/=disabled/g" /etc/selinux/config
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive
[root@localhost ~]# reboot
[root@localhost ~]# getenforce
Disabled
二.安装依赖包
[root@localhost ~]# yum -y install httpd dhcp* tftp tftp-server cobbler cobbler-web pykickstart rsync rsync-daemon
三.设置开机自启
[root@localhost ~]# systemctl enable --now httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
[root@localhost ~]# systemctl enable --now cobblerd
Created symlink /etc/systemd/system/multi-user.target.wants/cobblerd.service → /usr/lib/systemd/system/cobblerd.service.
[root@localhost ~]# systemctl enable --now rsyncd
Created symlink /etc/systemd/system/multi-user.target.wants/rsyncd.service → /usr/lib/systemd/system/rsyncd.service.
四.正式部署
#生成加密密码
[root@localhost ~]# openssl passwd -1 -salt 'random-phrase-here' 'dabao123!'
$1$random-p$VAxQnB8rJAXUWAm0cIy.D1
##修改/etc/cobbler/settings.yaml
[root@localhost ~]# vim /et