Cobbler Ubuntu 12.04 Installation

Cobbler is really powerful provisioning tool. I have been using it to provision salt-minion on bare metal servers. From official website:

Cobbler can help with provisioning, managing DNS and DHCP, package updates, power management, configuration management orchestration, and much more.

Latest Cobbler version is 2.4 and if you try to install it on Ubuntu 12.04 from packages you will get 2.2. I didn’t find PPA, so here is simple Cobbler Ubuntu 12.04 installation guide from source. First install all prerequisites:

apt-get update
apt-get -y install apache2 atftpd isc-dhcp-server bind9 createrepo fence-agents git-core \
                   libapache2-mod-wsgi mkisofs python-cheetah python-dev python-django \
                   python-netaddr python-setuptools python-simplejson python-urlgrabber \
                   python-yaml rsync syslinux

Enable additional Apache modules:

a2enmod ssl
a2enmod proxy_http
a2enmod rewrite

Simple fix in atftpd service (/etc/default/atftpd):

USE_INETD=false
OPTIONS="--tftpd-timeout 300 --retry-timeout 5 --bind-address=0.0.0.0 --maxthread 100 --verbose=5 /srv/tftp"

After you are done restart atftpd service:

service atftpd restart

Get latest cobbler from git repository and install it:

git clone git://github.com/cobbler/cobbler.git
cd cobbler && git checkout release24
make install

Copy web files to Apache root directory:

cp -r /srv/www/cobbler /var/www/cobbler
cp -r /srv/www/cobbler_webui_content /var/www/cobbler_webui_content

Set cobbler web password ‘cobbler:cobbler’:

htdigest /etc/cobbler/users.digest "cobbler" cobbler

Modify Cobbler modules to enable config file authentication (/etc/cobbler/modules.conf):

[authentication]
module = authn_configfile

Restart Apache and Cobbler and you are ready to go:

service cobblerd restart
service apache2 restart

Now you can access Cobbler from your web browser: http://ip_address/cobbler_web

Posted in How to and tagged , , .
  • Mark Howells

    Great article. On my system I also had run enable wsgi for apache2

    # a2enmod wsgi

  • Chris Magnuson

    I had to also run

    #a2enmod version
    #apt-get install make

    to resolve the error

    Syntax error on line 17 of /etc/apache2/conf.d/cobbler_web.conf:

    Invalid command ‘<IfVersion', perhaps misspelled or defined by a module not included in the server configuration