Puppet Class: psick::mounts

Defined in:
manifests/mounts.pp

Overview

Generic class to manage mount resources

Examples:

include psick::mounts

Parameters:

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

    An hash of mount resources wiuth parameter passed to mount Key values of each hash element are normal paramerts of the mount resource type

  • manage (Boolean) (defaults to: $psick::manage)

    If to actually manage any resource in this class. If false no resource is managed.

  • noop_manage (Boolean) (defaults to: $psick::noop_manage)

    If to use the noop() function for all the resources provided by this class. If this is true the noop function is called with $noop_value argument. This overrides any other noop setting (either set on client’s puppet.conf or by noop() function in main psick class).

  • noop_value (Boolean) (defaults to: $psick::noop_value)

    The value to pass to noop() function if noop_manage is true. It applies to all the resources (and classes) declared in this class If true: noop metaparamenter is set to true, resources are not applied If false: noop metaparameter is set to false, and any eventual noop setting is overridden: resources are always applied.



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'manifests/mounts.pp', line 24

class psick::mounts (
  Hash    $mounts      = {},

  Boolean $manage      = $psick::manage,
  Boolean $noop_manage = $psick::noop_manage,
  Boolean $noop_value  = $psick::noop_value,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }

    $mounts.each |$k,$v| {
      mount { $k:
        * => $v,
      }
    }
  }
}