Added support for CentOS to abusehelper
This commit is contained in:
parent
ce38e1487f
commit
bbf8ad0750
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue