diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-07-30 16:03:42 -0700 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-08-12 16:18:18 -0700 |
commit | ebe9a7f262f23ff7bd9f94afa9b0c1a07cbd2a73 (patch) | |
tree | 09e965ef64c6a9db49a4d2118dfa70ac3e649290 /lib/chef/resource | |
parent | 0c90f9868fb8a4576145645ca507f2452286ded3 (diff) | |
download | chef-ebe9a7f262f23ff7bd9f94afa9b0c1a07cbd2a73.tar.gz |
* Dscl user provider changes to support Mac 10.7, 10.8 & 10.9.
* Make the dscl user provider password handling idempotent.
* Refactor / modernize dscl user provider unit tests.
* Functional tests for dscl user provider.
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/user.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/chef/resource/user.rb b/lib/chef/resource/user.rb index 05c076229f..9d6e857de7 100644 --- a/lib/chef/resource/user.rb +++ b/lib/chef/resource/user.rb @@ -45,6 +45,8 @@ class Chef :manage_home => false, :non_unique => false } + @iterations = 27855 + @salt = nil @allowed_actions.push(:create, :remove, :modify, :manage, :lock, :unlock) end @@ -106,6 +108,22 @@ class Chef ) end + def salt(arg=nil) + set_or_return( + :salt, + arg, + :kind_of => [ String ] + ) + end + + def iterations(arg=nil) + set_or_return( + :iterations, + arg, + :kind_of => [ Integer ] + ) + end + def system(arg=nil) set_or_return( :system, |