- nfs.service got recently removed in openSUSE Tumbleweed and calling service restart nfs errors out on Tumbleweed. nfs.service has been an alias to nfs-client.target for a very long time and can thus be safely substituted. - all actively supported versions of openSUSE & SLE are using systemd now => no reason not to use systemctl
16 lines
383 B
Ruby
16 lines
383 B
Ruby
module VagrantPlugins
|
|
module GuestSUSE
|
|
module Cap
|
|
class NFSClient
|
|
def self.nfs_client_install(machine)
|
|
machine.communicate.sudo <<-EOH.gsub(/^ {12}/, '')
|
|
zypper -n install nfs-client
|
|
/usr/bin/systemctl restart rpcbind
|
|
/usr/bin/systemctl restart nfs-client.target
|
|
EOH
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|