Overview
Cobbler, as a bulk deployment tool for physical machine operating systems, is widely used to implement fully automated deployments from system installation to configuration with virtually no interference, and he uses DNSMASQ as an internal DHCP and DNS server. It is possible to customize its snippets script for more complex installation configuration operations. And he supports the Web UI for configuration. Its core components include:
Distros: Defining Linux distributions
Profiles: Installs a combination configuration file that allows you to deploy Linux servers with different features through the combination of the first two and different kickstart or seed files.
System: Specifies the installation options for a specific machine, such as specifying host name, IP, DNS, and so on.
This experiment mainly deploys the installation cobbler program on CENTOS7, the deployment specific operating system is introduced later.
Installing Cobbler
Install cobbler with Yum to perform "required Epel source" on Cobbler-server:
Yum Install httpd cobbler cobbler-web Pykickstart xinetd
Start related services
Systemctl enable httpd Systemctl enable Cobblerdsystemctl enable Dnsmasqsystemctl enable Rsyncdsystemctl start Httpdsyste Mctl start Cobblerdsystemctl start dnsmasqsystemctl start rsyncdsystemctl start xined
Configure Cobbler
Configure a random key with 4-bit pseudo-random number (this step can be omitted)
OpenSSL passwd-1-salt $ (OpenSSL Rand-hex 4)
Modify the Cobbler configuration file/etc/cobbler/settings to confirm the values configured as follows
next_server:172.16.1.122server:172.16.1.122 Manage_dhcp:1 Manage dns:1 manage_tftpd:1 manage Rsync:1 Pxe_just_noce: 1default_password_crypted: [Source Fill in the key string generated above]
Configure Enable TFTP service
#sed –I '/disable/c\\tdisable\t\t\t= no '/etc/xinted.d/tftp
Modify/etc/cobbler/dnsmasq.template to configure DNSMASQ information
dhcp-range=1.1.1.2,1.1.1.10 "Define client DHCP range" Dhcp-ignore=tag:!known dhcp-ignore= #knowndhcp-option=3,1.1.1.1 "Fill in the IP of the gateway"
Modifying the/etc/cobbler/modules.conf configuration file
[DNS] module = MANAGE_DNSMASQ [DHCP] module = MANAGE_DNSMASQ
Download the PXE boot menu "Downloading pxelinux.0 files from the Internet, before you can run the next cobbler check check"
#cobbler get-loaders
Restart related services
Systemctl Restart Cobblerdsystemctl Restart RSYNCD systemctl Restart xinetd
Check the Cobbler configuration
#cobbler Check "Most error options can be ignored, such as power management, etc."
Sync data, need sync every time you make a cobbler configuration change
#cobbler Sync
At this point Cobbler Basic program has been installed, can be used. But all at the command line, the Web UI configuration is introduced at work.
web Authentication login Settings
-
Edit/etc/cobbler/modules.conf and modify the following:
-
module = authn_configfile "This is the authentication file for user authentication, and of course other ways such as pam,ldap "
-
Generate user authentication file
-
htdigest /etc/cobbler/users.digest "Cobbler" cobbler "User name and password are cobbler"
-
Add the newly created cobbler user to the Admin group, edit/etc/cobbler/ Users.conf, modified as follows:
-
admin = " Cobbler "
-
Restart the Cobbler service and then access through HTTPS in the browser https://1.1.1.122/cobbler_web
Cobbler installation is complete, followed by cobbler automated installation of CENTOS7 and UBUNTU14
This article is from the "Ovation" blog, make sure to keep this source http://h11345.blog.51cto.com/780987/1851950
Installation of cobbler for automated deployment