Added better check if nfs server is available on SUSE hosts

This commit is contained in:
Thomas Boerger 2014-10-06 16:32:00 +02:00
parent 2d4454dcb4
commit 95f39d52fa
2 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,10 @@ module VagrantPlugins
module HostSUSE
module Cap
class NFS
def self.nfs_installed(env)
system("rpm -q nfs-kernel-server > /dev/null 2>&1")
end
def self.nfs_check_command(env)
"pidof nfsd > /dev/null"
end

View File

@ -11,6 +11,11 @@ module VagrantPlugins
Host
end
host_capability("suse", "nfs_installed") do
require_relative "cap/nfs"
Cap::NFS
end
host_capability("suse", "nfs_check_command") do
require_relative "cap/nfs"
Cap::NFS