mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Merge 41f0875310 into 0b7d460a45
This commit is contained in:
commit
aa5f39c4cb
2 changed files with 20 additions and 0 deletions
15
plugins/guests/gentoo/cap/nfs.rb
Normal file
15
plugins/guests/gentoo/cap/nfs.rb
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue