vaguerent/plugins/guests/suse/cap/nfs_client.rb
Dan Čermák a3588c28a8
Update nfs & service daemon names for suse based hosts
- 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
2019-09-18 23:28:18 +02:00

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