summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-02-08 16:45:38 -0800
committerTim Smith <tsmith@chef.io>2019-02-19 10:06:12 -0800
commit3802f19d0b613c63c30e09e713debf2ac223d837 (patch)
treeee9e170d7086ecd3e93d1d7015250a4e8b7b8547
parent1d9b0d9d66d023eccd670f2360fb5d3268ec54b0 (diff)
downloadchef-3802f19d0b613c63c30e09e713debf2ac223d837.tar.gz
Move the iterations property directly into the dscl_user resource
It's not used anywhere else. Let's keep it out of the other resources. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/user.rb4
-rw-r--r--lib/chef/resource/user/dscl_user.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/user.rb b/lib/chef/resource/user.rb
index 2186a77f79..bef1f5f620 100644
--- a/lib/chef/resource/user.rb
+++ b/lib/chef/resource/user.rb
@@ -49,10 +49,6 @@ class Chef
description: "The password shadow hash",
desired_state: false
- property :iterations, Integer,
- description: "macOS platform only. The number of iterations for a password with a SALTED-SHA512-PBKDF2 shadow hash.",
- default: 27855, desired_state: false
-
property :non_unique, [ TrueClass, FalseClass ],
description: "Create a duplicate (non-unique) user account.",
default: false, desired_state: false
diff --git a/lib/chef/resource/user/dscl_user.rb b/lib/chef/resource/user/dscl_user.rb
index 6eb1c953f4..0afc504c1d 100644
--- a/lib/chef/resource/user/dscl_user.rb
+++ b/lib/chef/resource/user/dscl_user.rb
@@ -25,6 +25,10 @@ class Chef
provides :dscl_user
provides :user, os: "darwin"
+
+ property :iterations, Integer,
+ description: "macOS platform only. The number of iterations for a password with a SALTED-SHA512-PBKDF2 shadow hash.",
+ default: 27855, desired_state: false
end
end
end