From d63ee5160ba3895ebbff932db0465e3b731fceeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 19 Apr 2022 16:10:16 +0200 Subject: profiles::mounts now takes data from hiera. --- manifests/mounts.pp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'manifests/mounts.pp') 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) } -- cgit v1.2.3