Environment:
OEL6.3 x64 (CentOS6.3 x64)
No other DHCP servers in the Network Environment
I. cobbler installation preparation
1. Disable iptables and selinux
# Chkconfig iptables off
# Vi/etc/selinux/config
SELINUX = disabled
1 # view after sestatus is restarted
2. Install the source preparation and cobbler Software
Description: basic source and epel source.
Rpm-ivh http://download.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Yum-y install cobbler-web httpd rsync tftp-server xinetd dhcp python-ctypes debmirror pykickstart fence-agents
2. Configure tftp-server and rsync
Enable the tftp and rsync services
Sed-I '/disable/c disable = no'/etc/xinetd. d/tftp
Sed-I-e's/= yes/= no/G'/etc/xinetd. d/rsync
3. Configure cobbler
1. Configure the httpd configuration file
# Vi/etc/httpd/conf/httpd. conf
ServerName 127.0.0.1: 80
2. Configure the master configuration file of cobbler
Sed-I's/next_server: 127.0.0.1/next_server: 192.168.1.10/G'/etc/cobbler/settings
Sed-I's/server: 127.0.0.1/server: 192.168.1.10/G'/etc/cobbler/settings
Sed-I's/manage_dhcp: 0/manage_dhcp: 1/G'/etc/cobbler/settings
Sed-I's/manage_rsync: 0/manage_rsync: 1/G'/etc/cobbler/settings
3. Configure the cobbler web login authentication configuration file
(1) modify the authentication File
Sed-I's/module = authn_denyall/module = authn_configfile/G'/etc/cobbler/modules. conf
(2) set the user name and password:
Htdigest/etc/cobbler/users. digest "Cobbler" cobbler
4. Generate the Cobbler installation system root initial password
(1) generate the key and configure the default key here, and reference the ks File
# Openssl passwd-1-salt 'random-phrase-here '123'
$1 $ random-p $ WbZ3JxhRzCS/1Ne4S9g4Z.
(2) Add the preceding encrypted string to the cobbler configuration file.
# Vi/etc/cobbler/settings
# Modify the configuration as follows:
Default_password_crypted: "$1 $ random-p $ WbZ3JxhRzCS/1Ne4S9g4Z ."
4. Configure DHCP and start cobbler services
1. Configure the dhcp configuration file
# Mv/etc/cobbler/dhcp. template/etc/cobbler/dhcp. template. bak
# Vi/etc/cobbler/dhcp. template
Ddns-update-style interim;
Allow booting;
Allow bootp;
Ignore client-updates;
Set vendorclass = option vendor-class-identifier;
Subnet 192.168.1.0 netmask 255.255.255.0 {
Option routers 192.168.1.1;
Option domain-name-servers 202.100.192.68;
Option subnet-mask limit 255.0;
Range dynamic-bootp 192.168.1.120 192.168.1.254;
Filename "/pxelinux.0 ";
Default-lease-time 21600;
Max-lease-time 43200;
Next-server $ next_server;
}
2. Services to be started
Chkconfig httpd on
Chkconfig xinetd on
Chkconfig dhcpd on
Chkconfig cobblerd on
Service httpd start
Service xinetd start
Service dhcpd start
Service cobblerd start
Cobbler installation and configuration for O & M Automation
Cobbler configuration in RHEL5.5
Automated O & M deployment of Cobbler Service Installation
Use Cobbler to quickly install CentOS in batches
Install and deploy Cobbler on CentOS 6.3