]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - modules/base_installation/manifests/fstab.pp
Add fstab module
[perso/Immae/Projets/Puppet.git] / modules / base_installation / manifests / fstab.pp
CommitLineData
56bc60ea
IB
1class base_installation::fstab (
2 $mounts = $base_installation::mounts
3) inherits base_installation {
4 $mounts.each |$mount| {
5 unless empty($mount) {
6 $infos = split($mount, ';')
7
8 file { $infos[0]:
9 ensure => directory,
10 } ->
11 mount { $infos[0]:
12 ensure => mounted,
13 device => "UUID=${infos[1]}",
14 fstype => $infos[2]
15 }
16 }
17 }
18}