Added support for RHEL and did some syntax cleaning
Assume that "RedHat" also works where "CentOS" does.
This commit is contained in:
parent
e9aae1dcf6
commit
24ecb51f6f
63 changed files with 544 additions and 497 deletions
|
@ -2,14 +2,14 @@
|
|||
#
|
||||
class abusehelper {
|
||||
|
||||
case $operatingsystem {
|
||||
ubuntu: {
|
||||
case $::operatingsystem {
|
||||
"ubuntu": {
|
||||
package { [ "python-pyme", "python-tz" ]:
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
centos: {
|
||||
case $operatingsystemrelease {
|
||||
"centos","redhat": {
|
||||
case $::operatingsystemrelease {
|
||||
/^5/: {
|
||||
package { "python26":
|
||||
ensure => installed,
|
||||
|
@ -44,7 +44,7 @@ class abusehelper {
|
|||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
|
@ -61,7 +61,7 @@ class abusehelper {
|
|||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue