Added better check if nfs server is available on SUSE hosts
This commit is contained in:
parent
2d4454dcb4
commit
95f39d52fa
|
@ -2,6 +2,10 @@ module VagrantPlugins
|
||||||
module HostSUSE
|
module HostSUSE
|
||||||
module Cap
|
module Cap
|
||||||
class NFS
|
class NFS
|
||||||
|
def self.nfs_installed(env)
|
||||||
|
system("rpm -q nfs-kernel-server > /dev/null 2>&1")
|
||||||
|
end
|
||||||
|
|
||||||
def self.nfs_check_command(env)
|
def self.nfs_check_command(env)
|
||||||
"pidof nfsd > /dev/null"
|
"pidof nfsd > /dev/null"
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,6 +11,11 @@ module VagrantPlugins
|
||||||
Host
|
Host
|
||||||
end
|
end
|
||||||
|
|
||||||
|
host_capability("suse", "nfs_installed") do
|
||||||
|
require_relative "cap/nfs"
|
||||||
|
Cap::NFS
|
||||||
|
end
|
||||||
|
|
||||||
host_capability("suse", "nfs_check_command") do
|
host_capability("suse", "nfs_check_command") do
|
||||||
require_relative "cap/nfs"
|
require_relative "cap/nfs"
|
||||||
Cap::NFS
|
Cap::NFS
|
||||||
|
|
Loading…
Reference in New Issue