Add systemd module, required by rabbitmq
[mirror/dsa-puppet.git] / 3rdparty / modules / systemd / templates / limits.erb
diff --git a/3rdparty/modules/systemd/templates/limits.erb b/3rdparty/modules/systemd/templates/limits.erb
new file mode 100644 (file)
index 0000000..f51d756
--- /dev/null
@@ -0,0 +1,16 @@
+# This file managed by Puppet - DO NOT EDIT
+[Service]
+<%
+  @limits.keys.sort.each do |k|
+
+    # Handles the Path and Option entries
+    if @limits[k].is_a?(Array)
+      output = @limits[k].map{|x|
+        x = %(#{k}=#{x.to_a.flatten.join(' ')})
+      }.join("\n")
+   else
+     output = %(#{k}=#{@limits[k]})
+   end
+-%>
+<%= output %>
+<% end -%>