Add nixos guest capability: nfs_client_installed
This commit is contained in:
parent
004ea50bf2
commit
3b1b3d0a00
|
@ -0,0 +1,11 @@
|
|||
module VagrantPlugins
|
||||
module GuestNixos
|
||||
module Cap
|
||||
class NFSClient
|
||||
def self.nfs_client_installed(machine)
|
||||
machine.communicate.test("test -x /run/current-system/sw/sbin/mount.nfs")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -20,6 +20,11 @@ module VagrantPlugins
|
|||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("nixos", "nfs_client_installed") do
|
||||
require_relative "cap/nfs_client"
|
||||
Cap::NFSClient
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue