2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'manifests/systemd.pp', line 2
class disks::systemd () {
mount { '/':
ensure => mounted,
device => $facts['mountpoints']['/']['device'],
atboot => true,
fstype => $facts['mountpoints']['/']['filesystem'],
options => 'rw,relatime',
dump => '0',
pass => '1',
}
if !$facts.dig('disks', '/dev/sdb') {
mount { 'none':
ensure => absent,
fstype => 'swap',
}
}
if $facts.dig('partitions', '/dev/mmcblk0p1') {
mount { '/boot':
ensure => mounted,
device => '/dev/mmcblk0p1',
atboot => true,
fstype => 'vfat',
options => ['defaults'],
dump => '0',
pass => '0',
}
}
$disks::lvs.each | String $name, Hash $options | {
disks::lv { $name:
* => $options,
}
}
}
|