Using  variable instead of hardcoded value
Fix megacli repository for ubuntu
health: Adding NONETWORKTEST=1 support

In some case we don't want to do the networking test. To avoid it, you
can just add NONETWORKTEST=1 at the command line.
health: Inverting random & sequential IOs

On some controller we need to make sequential IOs before doing the
random one unless unaccurate results returns.

Spreading a great amount of random IOs saturates controller's cache.
Once the fio ended, and even in direct mode, starting the sequential
test for 10sec lead to this situation :

Controller is still mixing the remaining random IOs with the sequential
ones. As a result the sequential one as much more lower since the
controller didn't ended the random one.

Inverting random & sequential one solve this insue since sequential IOs
are completed very quickly and doesn't last into the controller.
health: Flusing disk's buffer before benchmark

Prior any fio benchmarking, let's flush disk's cache to avoid any
performance issue.

As the run_fio() function is called many time, let's be sure that no
more data are located in disk's cache before starting.

That might not be handled by some Raid controller.
build/common,functions,pxe.install,health-check.install: use numeric ids when building
build/common: clean log dir
build/base.install: clean target dir before starting and use a real cache for the hpacucli package.
Added check curl (required by {redhat,centos} builds)

If curl package is missing on build server, {redhat,centos} builds
fail with a not explicate message from rpm.

rpm: RPM should not be used directly install RPM packages, use Alien
instead!

Closes: #65
Merge pull request #66 from enovance/bug/65/sbadia

Added check curl (required by {redhat,centos} builds)
upload-health: Removing pxemgnr support

The automatic health check doesn't use the pxemgnr, so let's remove all
this dead code.
upload-health: Insure proper reading of config file

Prior this commit the configuration file wasn't parsed properly and lead
to an upload in /etc which is forbiden.
upload-health: Allow multiple upload on same dir

When benchmarking several hosts at the same time they do try uploading
theirs resultst on the same time. As the directory was already existing,
only the first system that uploaded its result got saved.

This patch insure that if the directory already exists, meaning another
host already uploaded some result in the same minute, the uploading
doesn't fail.
health: Adding SESSION support

When performing benchmark, it's pretty common to change settings between
several phases to later analyze them.

The current behavior was about uploading everything by date turning into
a difficult task to remember what host was running which setup at what
time.

To ease this, a SESSION parameter have been added. When a result is
uploaded to the usb stick or on the edeploy server, a directory is
created with the SESSION name. All the files are then located into this
dir.
quality: white space police

Removing useless spaces that could generate useless conflicts
upgrade-from: Setting dir before calling common_setup

common_setup rely on dir variable. It was setup too late and generates
weird behaviours.
common: Protecting against empty ${dir} variable

If common_setup is called without dir variable properly set, that will
kill the local system instead of patching the destination.

This was the case of some upgrade-from calls prior commit 36907a7eb8963f781c33060052afee0e95d37d6f.

This patch add a protection that stops the build process if dir variable
isn't set.
upgrade-from: Adding fake DIST

upgrade-from is using common_setup() but the DIST variable wasn't set
breaking the add_rhn_repository.

Let's add a fake value that prevent too much touching the code base and
avoid upgrade-from from failing.

I'm not 100% happy with the patch but at least it makes upgrade-from
working back.
quality: Whitespace police

Much more usless white spaces that could generate conflicts.
base: Adding logrotate & cron

A per issue #68, some packages were not installed at the right time and
got disabled.

Cron & logrotate are important packages that needs to be installed
pretty soon to avoid any service disabling.