Commit 275c4e1f authored by Tim Smith's avatar Tim Smith

Make the default end in .conf

No point in having the coerce update these
Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent 0c751589
......@@ -20,7 +20,7 @@ property :rtprio_hard_limit, [String, Integer]
property :virt_limit, [String, Integer]
property :filename, String,
coerce: proc { |m| m.end_with?('.conf') ? m : m + '.conf' },
default: lazy { |r| r.username == '*' ? '00_all_limits' : "#{r.username}_limits" }
default: lazy { |r| r.username == '*' ? '00_all_limits.conf' : "#{r.username}_limits.conf" }
action :create do
template "/etc/security/limits.d/#{new_resource.filename}" do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment