adding in suport of amazon linux
This commit is contained in:
parent
f7c5108ec6
commit
884777290a
3 changed files with 27 additions and 2 deletions
|
@ -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'],
|
||||
|
|
20
manifests/package/amazon.pp
Normal file
20
manifests/package/amazon.pp
Normal 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,
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue