Difference between revisions of "Cobbler installation on CentOS/RHEL"
| Line 1: | Line 1: | ||
==== Pre-Requisits ==== | ==== Pre-Requisits ==== | ||
| − | |||
For this installation, we will need to have the following services installed: '''dhcp''', '''bind''' & '''apache'''. | For this installation, we will need to have the following services installed: '''dhcp''', '''bind''' & '''apache'''. | ||
| Line 14: | Line 13: | ||
==== Adding the EPEL Repo to get cobbler ==== | ==== Adding the EPEL Repo to get cobbler ==== | ||
| − | |||
Download '''http://mirrors.coreix.net/fedora-epel/5/i386/epel-release-5-4.noarch.rpm''' (or whatever is suitable for the installed OS): | Download '''http://mirrors.coreix.net/fedora-epel/5/i386/epel-release-5-4.noarch.rpm''' (or whatever is suitable for the installed OS): | ||
<syntaxhighlight> | <syntaxhighlight> | ||
| Line 25: | Line 23: | ||
==== Install cobbler ==== | ==== Install cobbler ==== | ||
| − | |||
Install using yum: | Install using yum: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
| Line 32: | Line 29: | ||
==== Check apache is working ==== | ==== Check apache is working ==== | ||
| − | |||
Restart '''httpd''': | Restart '''httpd''': | ||
<syntaxhighlight> | <syntaxhighlight> | ||
| Line 83: | Line 79: | ||
log_on_failure += USERID | log_on_failure += USERID | ||
} | } | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | ==== Edit /etc/debmirror.conf for proper Debian support ==== | ||
| + | Edit '''/etc/debmirror.conf''' and comment '''dists''' and '''arches''' lines: | ||
| + | <syntaxhighlight> | ||
| + | # Download options | ||
| + | $host="ftp.debian.org"; | ||
| + | $user="anonymous"; | ||
| + | $passwd="anonymous@"; | ||
| + | $remoteroot="/debian"; | ||
| + | $download_method="ftp"; | ||
| + | # @dists="sid"; | ||
| + | @sections="main,main/debian-installer,contrib,non-free"; | ||
| + | # @arches="i386"; | ||
| + | # @extra_dirs=""; | ||
| + | # @ignores=""; | ||
| + | . . . . . | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 15:27, 3 July 2012
Pre-Requisits
For this installation, we will need to have the following services installed: dhcp, bind & apache.
Install with the following yum command:
yum install httpd dhcp bindIf necessary, the dhcpd service can be restricted to servicing dhcp requests on just one port. To do this, edit the /etc/sysconfig/dhcpd file and set the following line:
DHCPDARGS=eth1Adding the EPEL Repo to get cobbler
Download http://mirrors.coreix.net/fedora-epel/5/i386/epel-release-5-4.noarch.rpm (or whatever is suitable for the installed OS):
wget http://mirrors.coreix.net/fedora-epel/5/i386/epel-release-5-4.noarch.rpmAnd install:
rpm -ivh epel-release-5-4.noarch.rpmInstall cobbler
Install using yum:
yum install cobbler cobbler-webCheck apache is working
Restart httpd:
service httpd restartThe following error might occur:
Starting httpd: Syntax error on line 10 of /etc/httpd/conf.d/cobbler.conf:
Invalid command 'WSGIScriptAliasMatch', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]If this error occurs, firstly remove mod_python:
rpm -e mod_pythonThen, create a mod_wsgi config file:
cat > /etc/httpd/conf.d/05-load-wsgi.conf
LoadModule wsgi_module modules/mod_wsgi.soAnd finally restart apache:
service httpd restartAdd a few more packages to satisfy some cobbler requirements
Install debmirror with yum (needed to manage debian deployments):
yum install debmirrorInstall pykickstart with yum (A python library for manipulating kickstart files):
yum install pykickstartEdit xinet.d/rsync file
Edit /etc/xinetd.d/rsync and change disable to no:
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}Edit /etc/debmirror.conf for proper Debian support
Edit /etc/debmirror.conf and comment dists and arches lines:
# Download options
$host="ftp.debian.org";
$user="anonymous";
$passwd="anonymous@";
$remoteroot="/debian";
$download_method="ftp";
# @dists="sid";
@sections="main,main/debian-installer,contrib,non-free";
# @arches="i386";
# @extra_dirs="";
# @ignores="";
. . . . .