Defined Type: autofs::map
- Defined in:
- manifests/map.pp
Summary
Create an auto.master entry file and its corresponding map fileOverview
Creates a pair of ‘autofs::masterfile` and `autofs::mapfile` resources for `$name`.
-
The auto.master entry will have the implied ‘map_type’ of ‘file’, will have the default ‘map_format’ of ‘sun’, and will be written to file in ‘$autofs::master_conf_dir`.
-
The corresponding map file will be in ‘sun’ format and be located in ‘$autofs::maps_dir`.
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'manifests/map.pp', line 86
define autofs::map(
Stdlib::Absolutepath $mount_point,
Optional[String] $master_options = undef,
Variant[Autofs::Directmapping, Array[Autofs::Indirectmapping,1]] $mappings
) {
include 'autofs'
$_safe_name = regsubst(regsubst($name, '^/', ''), '(/|\s)', '__', 'G')
$_map_filename = "${autofs::maps_dir}/${_safe_name}.map"
autofs::masterfile { $_safe_name:
mount_point => $mount_point,
map => $_map_filename,
options => $master_options
}
autofs::mapfile { $_safe_name:
mappings => $mappings,
maps_dir => $autofs::maps_dir
}
Autofs::Mapfile[$_safe_name] -> Autofs::Masterfile[$_safe_name]
}
|