Puppet Class: nfs::client
- Defined in:
- manifests/client.pp
Summary
Manage the NFS clientOverview
This class exists to:
-
Order the loading of classes,
-
Including all needed classes for NFS as a client.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'manifests/client.pp', line 23
class nfs::client (
String $ensure = $nfs::ensure,
Boolean $nfs_v4 = $nfs::nfs_v4_client,
String $nfs_v4_mount_root = $nfs::nfs_v4_mount_root,
String $nfs_v4_idmap_domain = $nfs::nfs_v4_idmap_domain,
) {
# package(s)
class { 'nfs::client::package': }
# configuration
class { 'nfs::client::config': }
# service(s)
class { 'nfs::client::service': }
if $ensure == 'present' {
# we need the software before configuring it
Class['nfs::client::package']
-> Class['nfs::client::config']
-> Class['nfs::client::service']
} else {
# make sure all services are getting stopped before software removal
Class['nfs::client::service']
-> Class['nfs::client::package']
}
}
|