Puppet module to manage autofs. Documentation TBD.
This module has been tested to work on the following systems with the latest
Puppet v3, v3 with future parser, v4, v5 and v6. See .travis.yml
for the
exact matrix of supported Puppet and ruby versions.
Set this to YES
if you want your mounts to be browseable.
Default mount timeout.
Default negative timeout for failed mount attempts.
Time to wait for a response from mount.
Time to wait for a response from umount.
Default protocol version used by mount.nfs
Specify whether options should be appended to global options or replacing them.
Set default log level none
, verbose
or debug
.
Specify the maps managed. This value is sent to define autofs::map
.
If the module should merge $maps
from different levels in hiera.
Package name for autofs. Unset, this parameter will choose the appropriate default for the system.
Absolute path for autofs sysconfig location. Unset, this parameter will choose the appropriate default for the system.
Service name for autofs to manage.
Absolute path for autofs.master location. Unset, this parameter will choose the appropriate default for the system.
If the module should load mount maps from NIS.
The name of the NIS map containing the auto.master data.
Value for the service ensure attribute. Valid values are running
and stopped
.
Value for the service enable attribute.
Set this to true makes autofs use -hosts
for the /net mountpoint. Set to false to use /etc/auto.net
.
Specify the mountpoint in auto.master
.
Specify maptype for mountpoint in auto.master
.
The name for the map in auto.master
. The default of undef
will use the name of the key used to specify the mount.
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.
Specify the mounts to be mounted at mountpoint as an array.
Boolean to manage mounts in auto.master
. Setting it to false will result in -null
in auto.master
.
Specify the mounts to be mounted at mountpoint from a file.
Specify extra mount points for this mountpoint in auto.master
.
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