Sha256: a2d818f14b887d96b07a2c335b6d45a140b91623559836b52027f0da0196f5c4
Contents?: true
Size: 817 Bytes
Versions: 9
Compression:
Stored size: 817 Bytes
Contents
module VagrantPlugins module GuestRedHat module Cap class NFSClient def self.nfs_client_install(machine) machine.communicate.sudo <<-EOH.gsub(/^ {12}/, '') if command -v dnf; then if `dnf info -q libnfs-utils > /dev/null 2>&1` ; then dnf -y install nfs-utils libnfs-utils portmap else dnf -y install nfs-utils nfs-utils-lib portmap fi else yum -y install nfs-utils nfs-utils-lib portmap fi if test $(ps -o comm= 1) == 'systemd'; then /bin/systemctl restart rpcbind nfs else /etc/init.d/rpcbind restart /etc/init.d/nfs restart fi EOH end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems