Sha256: e6ca8aaae63ca01b9ca803f1bc7fc0589832878a691760cda983f71c025dea7b
Contents?: true
Size: 943 Bytes
Versions: 4
Compression:
Stored size: 943 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 elif `dnf info -q nfs-utils-lib > /dev/null 2>&1` ; then dnf -y install nfs-utils nfs-utils-lib portmap else dnf -y install nfs-utils 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-server else /etc/init.d/rpcbind restart /etc/init.d/nfs restart fi EOH end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems