Rollout Server Setup

[ Up ]

The rollout server rolloutd is a new addition to the rollout process. Previously, another web server such as Apache was required, but no longer.

Follow these steps to install the rollout server.

After extaction, run the following as root

# cp rolloutd /usr/local/sbin/rolloutd
# cp rollout.init /etc/init.d/rollout
# cp rollout.default /etc/default/rollout
# mkdir /usr/local/rollout
# chmod 750 /usr/local/sbin/rolloutd
# chmod 755 /etc/init.d/rollout
# chmod 600 /etc/default/rollout
# chown nobody:daemon /usr/local/rollout

Edit /etc/default/rollout to configure your server

Add required symlinks to /etc/rc?.d/S??rollout to /etc/init.d/rollout:

# ln -s /etc/init.d/rollout /etc/rc1.d/K20rollout
# ln -s /etc/init.d/rollout /etc/rc3.d/S70rollout
# ln -s /etc/init.d/rollout /etc/rc2.d/S70rollout

Copy the default configuration or your own configuration into /usr/local/rollout. The required files from the source are:

  • rollout
  • rollout.cfg
  • *.pm
  • steps/*
  • fragments/*

Install the required Perl modules, Net::HTTP, Error, IO::Socket::SSL, Net::Netmask.

On a Debian / Ubuntu machine, this can be done with:

# apt-get install libwww-perl liberror-perl libnet-netmask-perl libnet-ssleay-perl

Start the server with:

# /etc/init.d/rollout start