Added support for CentOS to abusehelper

This commit is contained in:
Ossi Salmi 2011-03-04 14:58:55 +02:00 committed by Timo Mkinen
parent ce38e1487f
commit bbf8ad0750

View file

@ -8,6 +8,11 @@ class abusehelper {
ensure => installed,
}
}
centos: {
package { "python26":
ensure => installed,
}
}
}
file { "/usr/local/src/abusehelper.tar.gz":
@ -22,9 +27,17 @@ class abusehelper {
strip => 1,
source => "/usr/local/src/abusehelper.tar.gz",
require => File["/usr/local/src/abusehelper.tar.gz"],
before => Python::Setup::Install["/usr/local/src/abusehelper"],
}
python::setup::install { "/usr/local/src/abusehelper":
require => Util::Extract::Tar["/usr/local/src/abusehelper"],
python => $operatingsystem ? {
centos => "python2.6",
default => "python",
},
require => $operatingsystem ? {
centos => Package["python26"],
default => undef,
},
}
include user::system