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

  • manage (Boolean) (defaults to: true)
  • noop_manage (Boolean) (defaults to: false)
  • noop_value (Boolean) (defaults to: false)


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'manifests/nfs/client.pp', line 15

class psick::nfs::client (
  Hash $mounts_hash    = {},
  Boolean $manage      = true,
  Boolean $noop_manage = false,
  Boolean $noop_value  = false,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }

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

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