Puppet Class: psick::nfs::client

Defined in:
manifests/nfs/client.pp

Summary

Manage NFS client and mounts

Overview

Examples:

Client configuration with mount

psick::profiles::linux_classes:
  nfs_client: psick::nfs::client

psick::nfs::client::mounts_hash:
  data:
    server: 10.42.42.101
    share: /data
    mountpoint: /mnt/data

Parameters:

  • mounts_hash (Hash) (defaults to: {})

    An hash of mountpoints to pass to psick::nfs::mount define



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/nfs/client.pp', line 15

class psick::nfs::client (
  Hash $mounts_hash = {},
) {

  # Workaround for rcpbind service handling.
  tp::install { 'nfs-client':
    settings_hash => {
      service_enable => undef,
    }
  }

  $mounts_hash.each |$k,$v| {
    psick::nfs::mount { $k:
      * => $v,
    }
  }
}