diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-13 02:57:27 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-13 11:15:08 +0100 |
commit | 56bc60ea5e9ae11872d3e3d388adb7c5ada0c2c9 (patch) | |
tree | 6ad73e489addc7dbec280edab56f4f2c408d658e /modules/base_installation/manifests/fstab.pp | |
parent | 70c37c94e226a708fd0407a4b3742c83972967a7 (diff) | |
download | Puppet-56bc60ea5e9ae11872d3e3d388adb7c5ada0c2c9.tar.gz Puppet-56bc60ea5e9ae11872d3e3d388adb7c5ada0c2c9.tar.zst Puppet-56bc60ea5e9ae11872d3e3d388adb7c5ada0c2c9.zip |
Add fstab module
Diffstat (limited to 'modules/base_installation/manifests/fstab.pp')
-rw-r--r-- | modules/base_installation/manifests/fstab.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/base_installation/manifests/fstab.pp b/modules/base_installation/manifests/fstab.pp new file mode 100644 index 0000000..f012e76 --- /dev/null +++ b/modules/base_installation/manifests/fstab.pp | |||
@@ -0,0 +1,18 @@ | |||
1 | class 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 | } | ||