Puppet Class: coretx::fsmounts

Defined in:
manifests/fsmounts.pp

Overview

Class: coretx::fsmounts

Manage the filesystem mount states (/etc/fstab) Resource documentation (mount): docs.puppet.com/puppet/latest/types/mount.html

Parameters:

  • fsmounts_hash (Hash) (defaults to: {})
  • fsmounts_dir_hash (Hash) (defaults to: {})
  • default_fsmounts_ensure (String) (defaults to: 'mounted')
  • default_fsmounts_options (String) (defaults to: 'defaults')
  • default_fsmounts_remounts (Boolean) (defaults to: true)


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/fsmounts.pp', line 6

class coretx::fsmounts (

  Hash $fsmounts_hash                = {},
  Hash $fsmounts_dir_hash            = {},
  String $default_fsmounts_ensure    = 'mounted',
  String $default_fsmounts_options   = 'defaults',
  Boolean $default_fsmounts_remounts = true,

)
{
  $fsmounts_defaults = {
    ensure   => $default_fsmounts_ensure,
    options  => $default_fsmounts_options,
    remounts => $default_fsmounts_remounts,
  }

  $fsmounts_dir_defaults = {
    ensure   => directory,
  }

  create_resources(file, $fsmounts_dir_hash, $fsmounts_dir_defaults)
  create_resources(mount, $fsmounts_hash, $fsmounts_defaults)
}