summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-11-06 16:11:43 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-11-06 21:43:20 +0100
commita5ed20b2aadc9359ca3add08cd7ddfdcab039f34 (patch)
tree3e27ab63ececf78f79b0e5a503992eb11218677f /templates
parentAdd puppet notice to generated sytemd files. (diff)
downloadnetworking-a5ed20b2aadc9359ca3add08cd7ddfdcab039f34.tar.gz
networking-a5ed20b2aadc9359ca3add08cd7ddfdcab039f34.tar.xz
Allow for lists in unit files.
Diffstat (limited to 'templates')
-rw-r--r--templates/unit_file.epp5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/unit_file.epp b/templates/unit_file.epp
index 1482b29..6751058 100644
--- a/templates/unit_file.epp
+++ b/templates/unit_file.epp
@@ -1,8 +1,9 @@
-<%- | Hash[String,Hash] $data
+<%- | Hash[String,Array[Hash]] $data
| -%>
# File managed by PUPPET
<%- $data.each |$key, $sub| { -%>
+<%- $sub.each |$sub| { -%>
[<%= $key %>]
<%- $sub.each |$k, $v| { -%>
<%- if $v =~ Array { $v.each |$v| { -%>
@@ -10,4 +11,4 @@
<%- } } else { -%>
<%= $k %>=<%= $v %>
<%- } -%>
-<%- }} -%>
+<%- }}} -%>