Fixed abusehelper and vsroom modules for CentOS 6
This commit is contained in:
parent
9a85a1217f
commit
29a674a0b5
2 changed files with 26 additions and 20 deletions
|
@ -9,9 +9,18 @@ class abusehelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
centos: {
|
centos: {
|
||||||
|
case $operatingsystemrelease {
|
||||||
|
/^5/: {
|
||||||
package { "python26":
|
package { "python26":
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
}
|
}
|
||||||
|
Python::Setup::Install["/usr/local/src/abusehelper",
|
||||||
|
"/usr/local/src/idiokit"] {
|
||||||
|
python => "python2.6",
|
||||||
|
require => Package["python26"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,14 +54,6 @@ class abusehelper {
|
||||||
}
|
}
|
||||||
python::setup::install { [ "/usr/local/src/abusehelper",
|
python::setup::install { [ "/usr/local/src/abusehelper",
|
||||||
"/usr/local/src/idiokit", ]:
|
"/usr/local/src/idiokit", ]:
|
||||||
python => $operatingsystem ? {
|
|
||||||
centos => "python2.6",
|
|
||||||
default => "python",
|
|
||||||
},
|
|
||||||
require => $operatingsystem ? {
|
|
||||||
centos => Package["python26"],
|
|
||||||
default => undef,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
include user::system
|
include user::system
|
||||||
|
|
|
@ -4,6 +4,19 @@ class vsroom {
|
||||||
|
|
||||||
require abusehelper
|
require abusehelper
|
||||||
|
|
||||||
|
case $operatingsystem {
|
||||||
|
centos: {
|
||||||
|
case $operatingsystemrelease {
|
||||||
|
/^5/: {
|
||||||
|
Python::Setup::Install["/usr/local/src/vsroom"] {
|
||||||
|
python => "python2.6",
|
||||||
|
require => Package["python26"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
file { "/usr/local/src/vsroom.tar.gz":
|
file { "/usr/local/src/vsroom.tar.gz":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
mode => 0644,
|
mode => 0644,
|
||||||
|
@ -18,16 +31,8 @@ class vsroom {
|
||||||
require => File["/usr/local/src/vsroom.tar.gz"],
|
require => File["/usr/local/src/vsroom.tar.gz"],
|
||||||
before => Python::Setup::Install["/usr/local/src/vsroom"],
|
before => Python::Setup::Install["/usr/local/src/vsroom"],
|
||||||
}
|
}
|
||||||
python::setup::install { "/usr/local/src/vsroom":
|
python::setup::install { "/usr/local/src/vsroom": }
|
||||||
python => $operatingsystem ? {
|
|
||||||
centos => "python2.6",
|
|
||||||
default => "python",
|
|
||||||
},
|
|
||||||
require => $operatingsystem ? {
|
|
||||||
centos => Package["python26"],
|
|
||||||
default => undef,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
file { "/usr/local/bin/vsroomctl":
|
file { "/usr/local/bin/vsroomctl":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
mode => 0755,
|
mode => 0755,
|
||||||
|
|
Loading…
Add table
Reference in a new issue