summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-03 20:23:51 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-03 20:23:51 +0100
commit0b0eb34a5348833353cf038e13b1574af3403808 (patch)
treece49385dfb3128953427db27bacf3234ac55ebcd
parentnetworking (diff)
downloadnetworking-0b0eb34a5348833353cf038e13b1574af3403808.tar.gz
networking-0b0eb34a5348833353cf038e13b1574af3403808.tar.xz
Allow lists in networkd config.
-rw-r--r--templates/unit_file.epp4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/unit_file.epp b/templates/unit_file.epp
index 2cbfefb..00d486a 100644
--- a/templates/unit_file.epp
+++ b/templates/unit_file.epp
@@ -3,5 +3,9 @@
<%- $data.each |$key, $sub| { -%>
[<%= $key %>]
<%- $sub.each |$k, $v| { -%>
+<%- if $v =~ Array { $v.each |$v| { -%>
<%= $k %>=<%= $v %>
+<%- } } else { -%>
+<%= $k %>=<%= $v %>
+<%- } -%>
<%- }} -%>