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,7 +2,7 @@
|
|||
#
|
||||
class nginx {
|
||||
|
||||
case $operatingsystem {
|
||||
case $::operatingsystem {
|
||||
"openbsd": {
|
||||
$user = "_nginx"
|
||||
$group = "_nginx"
|
||||
|
@ -27,7 +27,7 @@ class nginx {
|
|||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
|
@ -40,7 +40,7 @@ class nginx {
|
|||
ensure => directory,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => $operatingsystem ? {
|
||||
group => $::operatingsystem ? {
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
|
@ -58,7 +58,7 @@ class nginx {
|
|||
#
|
||||
class nginx::passenger inherits nginx {
|
||||
|
||||
case $operatingsystem {
|
||||
case $::operatingsystem {
|
||||
"openbsd": {
|
||||
Package["nginx"] {
|
||||
flavor => "passenger",
|
||||
|
@ -68,7 +68,7 @@ class nginx::passenger inherits nginx {
|
|||
}
|
||||
}
|
||||
default: {
|
||||
fail("Not supported on ${operatingsystem}")
|
||||
fail("Not supported on ${::operatingsystem}")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ define nginx::configfile($source="", $content="") {
|
|||
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