X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fsystemd%2Ftemplates%2Flimits.erb;fp=3rdparty%2Fmodules%2Fsystemd%2Ftemplates%2Flimits.erb;h=f51d756b7005e17a2a80a5cbc431cb39f253722c;hb=1329adc9f34c3c87e353983ec9023a6cf6e93e67;hp=0000000000000000000000000000000000000000;hpb=a81ff959d6c9c7605db1176b89dc2b5ffde0d903;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/systemd/templates/limits.erb b/3rdparty/modules/systemd/templates/limits.erb new file mode 100644 index 000000000..f51d756b7 --- /dev/null +++ b/3rdparty/modules/systemd/templates/limits.erb @@ -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 -%>