Commit 8e27f19b authored by Jaymz Julian's avatar Jaymz Julian
Browse files

add provides

parent 1b62841b
......@@ -3,6 +3,7 @@ require 'chef/resource'
class Chef
class Resource
class UlimitDomain < Chef::Resource
provides :ulimit_domain
property :domain, String
property :domain_name, String, name_property: true
property :filename, String
......
......@@ -3,6 +3,8 @@ require 'chef/resource'
class Chef
class Resource
class UlimitRule < Chef::Resource
provides :ulimit_rule
property :type, [Symbol, String], required: true
property :item, [Symbol, String], required: true
property :value, [String, Numeric], required: true
......
......@@ -3,7 +3,7 @@ require 'chef/resource'
class Chef
class Resource
class UlimitUser < Chef::Resource
resource_name :user_ulimit
provides :user_ulimit
property :username, String, name_property: true
property :filename, String, default: lazy { |r| r.username == '*' ? '00_all_limits' : "#{r.username}_limits" }
......
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