Fully-qualify facter variables

Fully-qualify facter variables, $::kernel and $::operatingsystem.
This commit is contained in:
Christian G. Warden 2011-12-13 11:45:31 -08:00
parent a6f98a88c2
commit 77f209d383
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ class nginx::package {
anchor { 'nginx::package::begin': }
anchor { 'nginx::package::end': }
case $operatingsystem {
case $::operatingsystem {
centos,fedora,rhel: {
class { 'nginx::package::redhat':
require => Anchor['nginx::package::begin'],

View file

@ -41,15 +41,15 @@ class nginx::params {
$nx_proxy_read_timeout = '90'
$nx_proxy_buffers = '32 4k'
$nx_logdir = $kernel ? {
$nx_logdir = $::kernel ? {
/(?i-mx:linux)/ => '/var/log/nginx',
}
$nx_pid = $kernel ? {
$nx_pid = $::kernel ? {
/(?i-mx:linux)/ => '/var/run/nginx.pid',
}
$nx_daemon_user = $operatingsystem ? {
$nx_daemon_user = $::operatingsystem ? {
/(?i-mx:debian|ubuntu)/ => 'www-data',
/(?i-mx:fedora|rhel|centos|suse|opensuse)/ => 'nginx',
}