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/instance.pp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 manifests/mounts/instance.pp (limited to 'manifests/mounts/instance.pp') diff --git a/manifests/mounts/instance.pp b/manifests/mounts/instance.pp new file mode 100644 index 0000000..3b87b81 --- /dev/null +++ b/manifests/mounts/instance.pp @@ -0,0 +1,19 @@ +define profiles::mounts::instance ( + String $what, + String $where = $name, + Array[String] $options = [], +) { + + file { $where: + ensure => directory, + } + + systemd_mount { $where: + what => $what, + where => $where, + wantedBy => 'remote-fs.target', + automount => true, + require => File[$where], + options => $options, + } +} -- cgit v1.2.3