Fully-qualify facter variables
Fully-qualify facter variables, $::kernel and $::operatingsystem.
This commit is contained in:
parent
a6f98a88c2
commit
77f209d383
2 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ class nginx::package {
|
||||||
anchor { 'nginx::package::begin': }
|
anchor { 'nginx::package::begin': }
|
||||||
anchor { 'nginx::package::end': }
|
anchor { 'nginx::package::end': }
|
||||||
|
|
||||||
case $operatingsystem {
|
case $::operatingsystem {
|
||||||
centos,fedora,rhel: {
|
centos,fedora,rhel: {
|
||||||
class { 'nginx::package::redhat':
|
class { 'nginx::package::redhat':
|
||||||
require => Anchor['nginx::package::begin'],
|
require => Anchor['nginx::package::begin'],
|
||||||
|
|
|
@ -41,15 +41,15 @@ class nginx::params {
|
||||||
$nx_proxy_read_timeout = '90'
|
$nx_proxy_read_timeout = '90'
|
||||||
$nx_proxy_buffers = '32 4k'
|
$nx_proxy_buffers = '32 4k'
|
||||||
|
|
||||||
$nx_logdir = $kernel ? {
|
$nx_logdir = $::kernel ? {
|
||||||
/(?i-mx:linux)/ => '/var/log/nginx',
|
/(?i-mx:linux)/ => '/var/log/nginx',
|
||||||
}
|
}
|
||||||
|
|
||||||
$nx_pid = $kernel ? {
|
$nx_pid = $::kernel ? {
|
||||||
/(?i-mx:linux)/ => '/var/run/nginx.pid',
|
/(?i-mx:linux)/ => '/var/run/nginx.pid',
|
||||||
}
|
}
|
||||||
|
|
||||||
$nx_daemon_user = $operatingsystem ? {
|
$nx_daemon_user = $::operatingsystem ? {
|
||||||
/(?i-mx:debian|ubuntu)/ => 'www-data',
|
/(?i-mx:debian|ubuntu)/ => 'www-data',
|
||||||
/(?i-mx:fedora|rhel|centos|suse|opensuse)/ => 'nginx',
|
/(?i-mx:fedora|rhel|centos|suse|opensuse)/ => 'nginx',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue