install rpc package while installing nfs client on centos guests

This commit is contained in:
Salimane Adjao Moustapha 2014-06-23 14:56:10 +02:00
parent 1e28f1ac31
commit b96dc972e0
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@ module VagrantPlugins
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("yum -y install nfs-utils nfs-utils-lib avahi")
comm.sudo("/etc/init.d/rpcbind restart; /etc/init.d/nfs restart")
end
end
end