f51d756b7005e17a2a80a5cbc431cb39f253722c
[mirror/dsa-puppet.git] / 3rdparty / modules / systemd / templates / limits.erb
1 # This file managed by Puppet - DO NOT EDIT
2 [Service]
3 <%
4   @limits.keys.sort.each do |k|
5
6     # Handles the Path and Option entries
7     if @limits[k].is_a?(Array)
8       output = @limits[k].map{|x|
9         x = %(#{k}=#{x.to_a.flatten.join(' ')})
10       }.join("\n")
11    else
12      output = %(#{k}=#{@limits[k]})
13    end
14 -%>
15 <%= output %>
16 <% end -%>