This commit is contained in:
Oz Tiram 2026-03-17 12:26:00 +00:00 committed by GitHub
commit aa5f39c4cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,15 @@
module VagrantPlugins
module GuestGentoo
module Cap
class NFS
def self.nfs_client_install(machine)
comm = machine.communicate
comm.sudo <<-EOH.gsub(/^ {12}/, '')
emerge nfs-utils
exit $?
EOH
end
end
end
end
end

View file

@ -23,6 +23,11 @@ module VagrantPlugins
require_relative "cap/configure_networks"
Cap::ConfigureNetworks
end
guest_capability(:gentoo, :nfs_client_install) do
require_relative "cap/nfs"
Cap::NFS
end
end
end
end