Page MenuHomeSoftware Heritage

mountpoints.pp
No OneTemporary

mountpoints.pp

# Handle mount points
class profile::mountpoints {
$mountpoints = lookup('mountpoints', Hash, 'deep')
each($mountpoints) |$mountpoint, $config| {
if (has_key($config, 'options') and $config['options'] =~ Array) {
$mount_config = $config + {
options => join($config['options'], ','),
}
} else {
$mount_config = $config
}
exec {"create ${mountpoint}":
creates => $mountpoint,
command => "mkdir -p ${mountpoint}",
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
} -> file {$mountpoint:}
mount {
default:
ensure => present,
dump => 0,
pass => 0,
options => 'defaults';
$mountpoint:
* => $mount_config,
require => File[$mountpoint],
}
}
}

File Metadata

Mime Type
text/x-c++
Expires
Jun 4 2025, 6:41 PM (14 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3243058

Event Timeline