diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index b7eef59..7b50c02 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -3,6 +3,7 @@ define systemd_mount ( String $where = $name, # /usr/net Boolean $automount = false, String $wantedBy = 'default.target', + Array[String] $options = [], ) { $mostly_fixed = $where.map |$c| { @@ -22,13 +23,14 @@ define systemd_mount ( content => epp('systemd_mount/mount.epp', { what => $what, where => $where, + options => $options, wantedby => if ($automount) { '' } else { "WantedBy=${wantedBy}" }, }), } if ($automount) { systemd::unit_file { "${fixed}.automount": - content => epp('systemd_mount/automount.epp', { + content => epp('systemd_mount/automount.epp', { where => $where, wantedBy => "WantedBy=${wantedBy}", }), |