adding in suport of amazon linux

This commit is contained in:
Ryan Fitzgerald 2013-01-22 12:09:51 -05:00
parent f7c5108ec6
commit 884777290a
3 changed files with 27 additions and 2 deletions

View file

@ -23,7 +23,12 @@ class nginx::package {
require => Anchor['nginx::package::begin'],
before => Anchor['nginx::package::end'],
}
}
amazon: {
class { 'nginx::package::amazon':
require => Anchor['nginx::package::begin'],
before => Anchor['nginx::package::end'],
}
} }
debian,ubuntu: {
class { 'nginx::package::debian':
require => Anchor['nginx::package::begin'],

View file

@ -0,0 +1,20 @@
# Class: nginx::package::amazon
#
# This module manages NGINX package installation on ec2 amazon linux based systems
#
# Parameters:
#
# There are no default parameters for this class.
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
# This class file is not called directly
class nginx::package::amazon {
package { 'nginx':
ensure => present,
}
}

View file

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