From f171713662fe2112205413b1b495ef2ba26c30e0 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Mon, 10 Dec 2012 15:58:58 -0800 Subject: [PATCH] Add scientific linux support This commit simply adds scientific to the `$::operatingsystem` selectors. --- manifests/package.pp | 2 +- manifests/params.pp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/package.pp b/manifests/package.pp index 5b9fbb6..e0090e1 100644 --- a/manifests/package.pp +++ b/manifests/package.pp @@ -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'], diff --git a/manifests/params.pp b/manifests/params.pp index 4c707ff..dfdadfb 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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"