Fixed nfs::client for Fedora versions older than 16.

This commit is contained in:
Timo Mkinen 2012-07-30 11:59:30 +03:00
parent dd9a78d8ae
commit 69c9979f70

View file

@ -9,7 +9,7 @@ class nfs::client {
ensure => installed,
}
if $::operatingsystem == "Fedora" {
if $::operatingsystem == "Fedora" and $::operatingsystemrelease >= 16 {
# https://bugzilla.redhat.com/show_bug.cgi?id=692008
service { "NetworkManager-wait-online":
ensure => stopped,
@ -19,7 +19,10 @@ class nfs::client {
service { "nfslock":
name => $::operatingsystem ? {
"fedora" => "nfs-lock",
"fedora" => $::operatingsystemrelease ? {
/^([1-9]|1[0-5])$/ => "nfslock",
default => "nfs-lock",
},
default => "nfslock",
},
ensure => running,