summaryrefslogtreecommitdiff
path: root/lib/chef/provider/user
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-11-24 12:28:38 -0800
committerTim Smith <tsmith84@gmail.com>2021-02-16 07:40:42 -0800
commita3dc9636e39eaeb912ae3e3cdd542387f3497c21 (patch)
tree23a94265159868f8a5f0c37b5acff8684ebec5bf /lib/chef/provider/user
parent3f4ef1b91f7a24d2c533eb4791ae099f8de49f4f (diff)
downloadchef-a3dc9636e39eaeb912ae3e3cdd542387f3497c21.tar.gz
Fully remove user resource support for macOS < 10.14
This builds on the removal of macOS 10.13 from the build matrix in https://github.com/chef/chef/pull/10680. With 10.14+ required for Chef packages we can safely remove the dscl_user resource and just assume 10.14+ when creating users. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/user')
-rw-r--r--lib/chef/provider/user/mac.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/provider/user/mac.rb b/lib/chef/provider/user/mac.rb
index 5604244f7f..573d28644b 100644
--- a/lib/chef/provider/user/mac.rb
+++ b/lib/chef/provider/user/mac.rb
@@ -29,13 +29,12 @@ class Chef
class User
# A macOS user provider that is compatible with default TCC restrictions
# in macOS 10.14. See resource/user/mac_user.rb for complete description
- # of the mac_user resource and how it differs from the dscl resource used
- # on previous platforms.
+ # of the mac_user resource
class MacUser < Chef::Provider::User
include Chef::Mixin::Which
provides :mac_user
- provides :user, os: "darwin", platform_version: ">= 10.14"
+ provides :user, os: "darwin"
attr_reader :user_plist, :admin_group_plist