parent
bde0e3fb2a
commit
a712f70634
|
@ -5,7 +5,12 @@ module VagrantPlugins
|
||||||
def self.nfs_client_install(machine)
|
def self.nfs_client_install(machine)
|
||||||
machine.communicate.tap do |comm|
|
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")
|
||||||
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue