If guests have the following capabilities, automatic NFS client installation will be done: * nfs_client_installed - Checks if the NFS client is installed * nfs_client_install - Install the NFS client Support is already in for Debian, Ubuntu, RedHat, CentOS, and Fedora
15 lines
329 B
Ruby
15 lines
329 B
Ruby
module VagrantPlugins
|
|
module GuestDebian
|
|
module Cap
|
|
class NFSClient
|
|
def self.nfs_client_install(machine)
|
|
machine.communicate.tap do |comm|
|
|
comm.sudo("apt-get -y update")
|
|
comm.sudo("apt-get -y install nfs-common portmap")
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|