autofs
: Manage autofs
autofs::map
: Manage autofs maps
Manage autofs
The following parameters are available in the autofs
class:
browse_mode
timeout
negative_timeout
mount_wait
umount_wait
mount_nfs_default_protocol
append_options
logging
maps
autofs_package
autofs_sysconfig
autofs_service
autofs_auto_master
use_nis_maps
use_dash_hosts_for_net
nis_master_name
service_ensure
service_enable
Data type: Enum['YES', 'NO']
Set this to YES
if you want your mounts to be browseable.
Default value: 'NO'
Data type: Integer[0]
Default mount timeout.
Default value: 600
Data type: Integer[0]
Default negative timeout for failed mount attempts.
Default value: 60
Data type: Integer
Time to wait for a response from mount.
Default value: -
Data type: Integer[0]
Time to wait for a response from umount.
Default value: 12
Data type: Integer[0]
Default protocol version used by mount.nfs.
Default value: 4
Data type: Enum['yes', 'no']
Specify whether options should be appended to global options or replacing them.
Default value: 'yes'
Data type: Enum['none', 'verbose', 'debug']
Set default log level none
, verbose
or debug
.
Default value: 'none'
Data type: Hash
Specify the maps managed. This value is sent to define autofs::map
.
Default value: {}
Data type: String[1]
Package name for autofs. Unset, this parameter will choose the appropriate default for the system.
Default value: 'autofs'
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'
Data type: String[1]
Service name for autofs to manage.
Default value: 'autofs'
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'
Data type: Boolean
If the module should load mount maps from NIS.
Default value: true
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
Data type: String[1]
The name of the NIS map containing the auto.master data.
Default value: 'auto.master'
Data type: Stdlib::Ensure::Service
Value for the service ensure attribute. Valid values are running
and stopped
.
Default value: 'running'
Data type: Boolean
Value for the service enable attribute.
Default value: true
Manage autofs maps
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
The following parameters are available in the autofs::map
defined type:
Data type: Optional[String[1]]
Specify the mountpoint in auto.master
.
Default value: undef
Data type: Optional[String[1]]
Specify maptype for mountpoint in auto.master
Default value: undef
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
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
Data type: Array
Specify the mounts to be mounted at mountpoint as an array.
Default value: []
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
Data type: Boolean
Boolean to manage contents of map.
Default value: true
Data type: Optional[Stdlib::Filesource]
Specify the mounts to be mounted at mountpoint from a file.
Default value: undef
Data type: Optional[String[1]]
Specify extra mount points for this mountpoint in auto.master
.
Default value: undef