diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-04-19 16:01:44 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-04-19 16:29:06 +0200 |
commit | 71e8cb8073ad3407effe3dd1252c3ab9be7722ec (patch) | |
tree | c3451dbab0d86a1acfd5fb1d8784223f54a60e78 /manifests | |
parent | Change path escape rules. (diff) | |
download | systemd_mount-71e8cb8073ad3407effe3dd1252c3ab9be7722ec.tar.gz systemd_mount-71e8cb8073ad3407effe3dd1252c3ab9be7722ec.tar.xz |
Allow options to system_mount.
Diffstat (limited to 'manifests')
-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}", }), |