Sha256: 156eedcbe8f7c55f99a789c2e92da8586744eca1d5f10db0351be6bd7fdaaca0

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

module VagrantPlugins
  module GuestRedHat
    module Cap
      class NFSClient
        def self.nfs_client_install(machine)
          machine.communicate.tap do |comm|
            comm.sudo("yum -y install nfs-utils nfs-utils-lib")
            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

Version data entries

4 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/guests/redhat/cap/nfs_client.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/guests/redhat/cap/nfs_client.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/guests/redhat/cap/nfs_client.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/guests/redhat/cap/nfs_client.rb