Merge pull request #37 from hunner/add_scilinux

Add scientific linux support
This commit is contained in:
James Fryman 2012-12-13 22:11:17 -08:00
commit 04b20ecc01
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ class nginx::package {
anchor { 'nginx::package::end': }
case $::operatingsystem {
centos,fedora,rhel,redhat: {
centos,fedora,rhel,redhat,scientific: {
class { 'nginx::package::redhat':
require => Anchor['nginx::package::begin'],
before => Anchor['nginx::package::end'],

View file

@ -51,8 +51,8 @@ class nginx::params {
}
$nx_daemon_user = $::operatingsystem ? {
/(?i-mx:debian|ubuntu)/ => 'www-data',
/(?i-mx:fedora|rhel|redhat|centos|suse|opensuse)/ => 'nginx',
/(?i-mx:debian|ubuntu)/ => 'www-data',
/(?i-mx:fedora|rhel|redhat|centos|scientific|suse|opensuse)/ => 'nginx',
}
# Service restart after Nginx 0.7.53 could also be just "/path/to/nginx/bin -s HUP"