15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'modules/cassandra/manifests/jbod_device.pp', line 15
define cassandra::jbod_device (
$mount_point = "/srv/${title}",
$mount_options = 'nofail,defaults',
) {
$device = $title
file { "mountpoint-${mount_point}":
ensure => directory,
path => $mount_point,
owner => 'root',
group => 'root',
mode => '0751',
before => Mount[$mount_point],
}
mount { $mount_point:
ensure => mounted,
device => "/dev/${device}",
name => $mount_point,
fstype => 'ext4',
options => $mount_options,
atboot => true,
remounts => true,
}
}
|