summaryrefslogtreecommitdiff
path: root/manifests/mounts.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-04-19 16:10:16 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-04-19 16:29:06 +0200
commitd63ee5160ba3895ebbff932db0465e3b731fceeb (patch)
treea5e34d118dcd9c7ab058c9be6b054251092b9809 /manifests/mounts.pp
parentFix profiles::common::debian using $name. (diff)
downloadprofiles-d63ee5160ba3895ebbff932db0465e3b731fceeb.tar.gz
profiles-d63ee5160ba3895ebbff932db0465e3b731fceeb.tar.xz
profiles::mounts now takes data from hiera.
Diffstat (limited to 'manifests/mounts.pp')
-rw-r--r--manifests/mounts.pp16
1 files changed, 4 insertions, 12 deletions
diff --git a/manifests/mounts.pp b/manifests/mounts.pp
index 893352f..daf0c4a 100644
--- a/manifests/mounts.pp
+++ b/manifests/mounts.pp
@@ -1,8 +1,6 @@
-class profiles::mounts {
-
- file { '/usr/net':
- ensure => directory,
- }
+class profiles::mounts (
+ Hash[String,Hash] $mounts,
+) {
case $facts['os']['family'] {
'Archlinux': {
@@ -13,11 +11,5 @@ class profiles::mounts {
}
}
- systemd_mount { '/usr/net':
- what => 'elrond:/files',
- where => '/usr/net',
- wantedBy => 'remote-fs.target',
- automount => true,
- require => File['/usr/net'],
- }
+ create_resources(profiles::mounts::instance, $mounts)
}