Dependent software:
Yum install epel DHCP tftp RYSNC xinetd httpd-y
To turn off SELinux:
Temporary shutdown:
Setenforce 0
Permanently closed:
Sed-i ' s/selinux=.*/selinux=disable/g '/etc/selinux/config
Install Cobbler:
Yum Install Cobbler
Configuring XINETD Boot Tftp:/etc/xinetd.d/tftp
Configure subnets on the DHCP server
Cobbler Important Documents:
/var/lib/cobbler/kickstarts/: #默认放置ks. CFG configuration file location
/etc/cobbler/settings: #cobbler配置文件
#修改setting文件
#为了集成现有环境, cancel the Cobbler Management service with the following setting of 0
manage_dhcp:0
manage_dns:0
manage_tftpd:0
manage_rsync:0
After setting up the configuration file, start the service
Systemctl start dhcpd #67/udp systemctl start xinetd #69/udp systemctl start rsyncd systemctl start httpd Systemctl Start Cobblerd
Detection Cobbler:
Cobbler Check #此处会出现一些错误, follow the prompts to solve the problem in turn
Restart Service:
Systemctl Restart Cobblerd Cobbler Sync #同步
Mount Image:
Mount/dev/cdrom/mnt Cobbler Import--name= ' self-define_name '--path=/mnt #导入
To view the current profile:
Cobbler Profile List
Make Kickstart file:
Ks.cfg:
OpenSSL passwd-1-salt Root #生成用户密码
Download: System-config-kickstart
Production Ks.cfg:
Graphical interface:
System-config-kickstart
Modify the installed Ks.cfg file:/root/anaconda-ks.cfg
Verify the validity of the KS file:
Ksvalidator ks.cfg
Copy the configuration file to the Cobbler startup directory:
CP ks.cfg/var/lib/cobbler/kickstarts/
To import a configuration file:
Cobbler profile Add--name= ' centos-7-base '--distro= ' centos-7-x86_64 '--kickstart=/var/lib/cobbler/kickstarts/ Ks.cfg
Reference URL:
KS configuration file: http://www.osyunwei.com/archives/7577.html
Cobbler Installation: Http://www.linuxidc.com/Linux/2015-09/122945.htm
Cobbler principle: http://www.361way.com/cobbler-principle/4328.html
This article is from the Network Technology security blog, be sure to keep this source http://lizhenfen.blog.51cto.com/3178498/1750924
Cobbler automatic installation of *nix system