Puppet Class: system::mounts
- Defined in:
- manifests/mounts.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'manifests/mounts.pp', line 1
class system::mounts (
$config = undef,
$schedule = $::system::schedule,
) {
$defaults = {
atboot => true,
ensure => 'mounted',
schedule => $schedule,
}
if $config {
create_resources(mount, $config, $defaults)
}
else {
$hiera_config = hiera_hash('system::mounts', undef)
if $hiera_config {
create_resources(mount, $hiera_config, $defaults)
}
}
}
|