Skip to content

Latest commit

 

History

History
316 lines (181 loc) · 6.81 KB

REFERENCE.md

File metadata and controls

316 lines (181 loc) · 6.81 KB

Reference

Table of Contents

Classes

Defined types

Classes

autofs

Manage autofs

Parameters

The following parameters are available in the autofs class:

browse_mode

Data type: Enum['YES', 'NO']

Set this to YES if you want your mounts to be browseable.

Default value: 'NO'

timeout

Data type: Integer[0]

Default mount timeout.

Default value: 600

negative_timeout

Data type: Integer[0]

Default negative timeout for failed mount attempts.

Default value: 60

mount_wait

Data type: Integer

Time to wait for a response from mount.

Default value: -

umount_wait

Data type: Integer[0]

Time to wait for a response from umount.

Default value: 12

mount_nfs_default_protocol

Data type: Integer[0]

Default protocol version used by mount.nfs.

Default value: 4

append_options

Data type: Enum['yes', 'no']

Specify whether options should be appended to global options or replacing them.

Default value: 'yes'

logging

Data type: Enum['none', 'verbose', 'debug']

Set default log level none, verbose or debug.

Default value: 'none'

maps

Data type: Hash

Specify the maps managed. This value is sent to define autofs::map.

Default value: {}

autofs_package

Data type: String[1]

Package name for autofs. Unset, this parameter will choose the appropriate default for the system.

Default value: 'autofs'

autofs_sysconfig

Data type: Stdlib::Absolutepath

Absolute path for autofs sysconfig location. Unset, this parameter will choose the appropriate default for the system.

Default value: '/etc/sysconfig/autofs'

autofs_service

Data type: String[1]

Service name for autofs to manage.

Default value: 'autofs'

autofs_auto_master

Data type: Stdlib::Absolutepath

Absolute path for autofs.master location. Unset, this parameter will choose the appropriate default for the system.

Default value: '/etc/auto.master'

use_nis_maps

Data type: Boolean

If the module should load mount maps from NIS.

Default value: true

use_dash_hosts_for_net

Data type: Boolean

Set this to true makes autofs use -hosts for the /net mountpoint. Set to false to use /etc/auto.net.

Default value: true

nis_master_name

Data type: String[1]

The name of the NIS map containing the auto.master data.

Default value: 'auto.master'

service_ensure

Data type: Stdlib::Ensure::Service

Value for the service ensure attribute. Valid values are running and stopped.

Default value: 'running'

service_enable

Data type: Boolean

Value for the service enable attribute.

Default value: true

Defined types

autofs::map

Manage autofs maps

Examples

Examples
Manage `/home` with mounts from a file on Puppet fileserver:
autofs::maps:
  home:
    mountpoint: 'home'
    file: 'puppet:///files/autofs/auto.home'

Results in `auto.master` with the following content.
  /home /etc/auto.home

Manage `/home` with mounts defined hiera:
  autofs::maps:
    home:
      mountpoint: 'home'
      mounts:
        - 'user1      nfsserver:/path/to/home/user1'
        - 'user2      nfsserver:/path/to/home/user2'

Results in `auto.home` with the following content and `auto.master` remaining as above.
  user1      nfsserver:/path/to/home/user1
  user2      nfsserver:/path/to/home/user2

Prevent `/home` from being managed by autofs (NIS included):
  autofs::maps:
    home:
      mountpoint: 'home'
      manage: false

Result in auto.master:
  /home -null

Parameters

The following parameters are available in the autofs::map defined type:

mountpoint

Data type: Optional[String[1]]

Specify the mountpoint in auto.master.

Default value: undef

maptype

Data type: Optional[String[1]]

Specify maptype for mountpoint in auto.master

Default value: undef

mapname

Data type: Optional[String[1]]

The name for the map in auto.master. The default of undef will use the name of the key used to specify the mount.

Default value: undef

mappath

Data type: Optional[Stdlib::Absolutepath]

Absolute path of the map file to be created and used in auto.master. The default of undef will use the name of the key used to specify the mount with /etc/auto. as prefix.

Default value: undef

mounts

Data type: Array

Specify the mounts to be mounted at mountpoint as an array.

Default value: []

manage

Data type: Variant[String[1], Boolean]

Boolean to manage mounts in auto.master. Setting it to false will result in -null in auto.master.

Default value: true

manage_content

Data type: Boolean

Boolean to manage contents of map.

Default value: true

file

Data type: Optional[Stdlib::Filesource]

Specify the mounts to be mounted at mountpoint from a file.

Default value: undef

options

Data type: Optional[String[1]]

Specify extra mount points for this mountpoint in auto.master.

Default value: undef