diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-13 11:17:34 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-13 11:17:34 +0100 |
commit | 96d61e22a20255c2b437eb3a3b81f9b44a1814de (patch) | |
tree | 2fd1df3a6c0c34b87499b2606e0cd45faf5e6861 /modules/base_installation/manifests/fstab.pp | |
parent | 70c37c94e226a708fd0407a4b3742c83972967a7 (diff) | |
parent | a869ea173f9a1e45f63336ad9d640bf94e5039e3 (diff) | |
download | Puppet-96d61e22a20255c2b437eb3a3b81f9b44a1814de.tar.gz Puppet-96d61e22a20255c2b437eb3a3b81f9b44a1814de.tar.zst Puppet-96d61e22a20255c2b437eb3a3b81f9b44a1814de.zip |
Merge branch 'fstabs' into dev
Add fstab, and reorganize hiera environments to avoid duplicates
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 | } | ||