Merge pull request #4499 from sprin/centos_7_nfs_client
Fix NFSClient plugin for Redhat / Centos 7 guests
This commit is contained in:
commit
e30ba41104
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue