Merge pull request #4499 from sprin/centos_7_nfs_client

Fix NFSClient plugin for Redhat / Centos 7 guests
This commit is contained in:
Mitchell Hashimoto 2014-10-23 10:09:11 -07:00
commit e30ba41104
1 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,12 @@ module VagrantPlugins
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")
case machine.guest.capability("flavor")
when :rhel_7
comm.sudo("/bin/systemctl restart rpcbind nfs")
else
comm.sudo("/etc/init.d/rpcbind restart; /etc/init.d/nfs restart")
end
end
end
end