]>
Commit | Line | Data |
---|---|---|
f25ad097 IB |
1 | class profile::fstab ( |
2 | Optional[Array] $mounts = [] | |
3 | ) { | |
56bc60ea | 4 | $mounts.each |$mount| { |
e89e896f | 5 | ensure_packages(["parted"]) |
5adcfd48 | 6 | |
56bc60ea IB |
7 | unless empty($mount) { |
8 | $infos = split($mount, ';') | |
9 | ||
10 | file { $infos[0]: | |
11 | ensure => directory, | |
12 | } -> | |
13 | mount { $infos[0]: | |
14 | ensure => mounted, | |
15 | device => "UUID=${infos[1]}", | |
16 | fstype => $infos[2] | |
17 | } | |
18 | } | |
19 | } | |
20 | } |