Puppet Class: psick::nfs::server

Defined in:
manifests/nfs/server.pp

Summary

Manages nfs server

Overview

Examples:

Configure NFS server and export a directory:

psick::profiles::linux_classes:
  nfs_server: psick::nfs::server
psick::nfs::server::exports_hash:
  data:
    share: /data
    guest: 10.42.42.0/16

Parameters:

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

    Hash of export definitions to be passed to psick::nfs::export

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


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

class psick::nfs::server (
  Hash $exports_hash   = {},
  Boolean $manage      = true,
  Boolean $noop_manage = false,
  Boolean $noop_value  = false,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }
    tp::install { 'nfs-server': }

    $exports_hash.each |$k,$v| {
      psick::nfs::export { $k:
        * => $v,
      }
    }
  }
}