Skip to content

Commit

Permalink
Add scientific linux support
Browse files Browse the repository at this point in the history
This commit simply adds scientific to the `$::operatingsystem`
selectors.
  • Loading branch information
hunner committed Dec 10, 2012
1 parent 688948a commit f171713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/package.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
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'],
Expand Down
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
}

$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"
Expand Down

0 comments on commit f171713

Please sign in to comment.