Puppet Class: nfs::client

Inherits:
nfs::params
Defined in:
manifests/client.pp

Overview

Parameters:

  • nfs_v4 (Any) (defaults to: $nfs::params::nfs_v4)
  • nfs_v4_mount_root (Any) (defaults to: $nfs::params::nfs_v4_mount_root)
  • nfs_v4_idmap_domain (Any) (defaults to: $nfs::params::nfs_v4_idmap_domain)


40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'manifests/client.pp', line 40

class nfs::client (
  $nfs_v4              = $nfs::params::nfs_v4,
  $nfs_v4_mount_root   = $nfs::params::nfs_v4_mount_root,
  $nfs_v4_idmap_domain = $nfs::params::nfs_v4_idmap_domain,
) inherits nfs::params {

  if $::osfamily == undef {
    $osfamily = 'redhat'
  } else {
    $osfamily = downcase($::osfamily)
  }

  if $osfamily in ['redhat', 'debian'] {
      class{ "nfs::client::${osfamily}":
        nfs_v4              => $nfs_v4,
        nfs_v4_idmap_domain => $nfs_v4_idmap_domain,
      }
  } else {
    fail("Osfamliy: ${osfamily} not supported")
  }
}