Puppet Class: autofs

Defined in:
manifests/init.pp

Overview

Class: autofs

Manages autofs mount points

This class includes defined types for looping through arrays of configuration file names.

Examples:

Declaring the autofs class

include autofs

Parameters:

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

    the options to build the autofs config from

  • use_map_dir

    boolean parameter determining the use of auto.master.d

  • map_dir

    string parameter used to set the directory for use_map_dir

Options Hash (mounts):

  • :mount (String)

    Location autofs will mount the share

  • :order (Integer)

    Order in which the config will be placed in auto.master

  • :options (String)

    Mount options

  • :master (String)

    Full path to the autofs master file, including filename

  • :map_dir (String)

    Full path to the master configuration directory. Only used with :use_dir

  • :use_dir (Boolean)

    Use the +dir option or not.

  • :direct (Boolean)

    Use direct mounts or not.

  • :execute (Boolean)

    Make the auto.* file executable or not.

  • :mapfile (String)

    Name of the "auto.*" configuration file to be generated.

  • :mapcontents (Array)

    Mount point options and parameters. Each array element represents a line in the configuration file.

  • :replace (Boolean)

    Enforce the configuration state or not.

See Also:

Author:



37
38
39
40
41
42
43
44
45
46
# File 'manifests/init.pp', line 37

class autofs (
  Hash $mounts         = {}
) {
  contain 'autofs::package'
  contain 'autofs::service'

  if ( $mounts != {} ) {
    class { 'autofs::mounts': }
  }
}