1.1 KiB
autofs
How to configure the autofs daemon.
Daemon Configuration
In Hiera base::enable_autofs controls the autofs daemon. Start it with:
base::enable_autofs: true
or to keep it shut down
base::enable_autofs: false
or to keep Puppet off
base::enable_autofs: null
Note that base::enable_central_storage_mount: true always enables autofs and base::enable_autofs will be ignored.
Automatic NFS on /net
The automatic mount of exported shares of an NFS server below /net/$SERVER is controlled in Hiera with the autofs::slash_net flag.
On RHEL7 or RHEL8 this feature is by default enabled, on RHEL9 and later disabled.
To have it always enabled do
autofs::slash_net: true
Configure own autofs Maps
For own maps place the auto.master part of the configuration in /etc/auto.master.d/ in an unique file with the .autofs suffix. From there you link your map files, which can be placed everywhere, often directly in /etc. To manage this via Puppet/Hiera you might check out the Distribute Files Guide.