vagrant/plugins/guests/redhat/cap/nfs_client.rb

15 lines
365 B
Ruby

module VagrantPlugins
module GuestRedHat
module Cap
class NFSClient
def self.nfs_client_install(machine)
machine.communicate.tap do |comm|
comm.sudo("yum -y install nfs-utils nfs-utils-lib")
comm.sudo("/etc/init.d/rpcbind restart; /etc/init.d/nfs restart")
end
end
end
end
end
end