summaryrefslogtreecommitdiff
path: root/templates/unit_file.epp
diff options
context:
space:
mode:
Diffstat (limited to 'templates/unit_file.epp')
-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 %>
<%- } -%>
-<%- }} -%>
+<%- }}} -%>