diff --git a/plugins/guests/gentoo/cap/nfs.rb b/plugins/guests/gentoo/cap/nfs.rb new file mode 100644 index 000000000..7b8b6d20a --- /dev/null +++ b/plugins/guests/gentoo/cap/nfs.rb @@ -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 diff --git a/plugins/guests/gentoo/plugin.rb b/plugins/guests/gentoo/plugin.rb index e1d8a6493..81d75581a 100644 --- a/plugins/guests/gentoo/plugin.rb +++ b/plugins/guests/gentoo/plugin.rb @@ -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