Fixup for matching $kernelversion on Joyent
This replaces the code that used to exist and now accommodates FreeBSD using the $kernel fact, but still allows Joyent selection from $kernelversion.
This commit is contained in:
parent
b939e92624
commit
305c439bc6
1 changed files with 6 additions and 4 deletions
|
@ -91,10 +91,12 @@ class nginx::params {
|
|||
/(?i-mx:freebsd)/ => '/var/run/nginx.pid',
|
||||
}
|
||||
|
||||
$nx_conf_dir = $::kernel ? {
|
||||
/(?i-mx:joyent)/ => '/opt/local/etc/nginx',
|
||||
/(?i-mx:freebsd)/ => '/usr/local/etc/nginx',
|
||||
default => '/etc/nginx',
|
||||
$nx_conf_dir = $::kernelversion ? {
|
||||
/(?i-mx:joyent)/ => '/opt/local/etc/nginx',
|
||||
default => $::kernel ? {
|
||||
/(?i-mx:freebsd)/ => '/usr/local/etc/nginx',
|
||||
default => '/etc/nginx',
|
||||
}
|
||||
}
|
||||
|
||||
if $::osfamily {
|
||||
|
|
Loading…
Reference in a new issue