diff options
author | Tim Smith <tsmith@chef.io> | 2019-01-23 11:56:05 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2019-01-24 13:28:14 -0800 |
commit | c405b7ae06b264d16e808aadd987fbd4062fc2e3 (patch) | |
tree | 07b952dd70a3a25a907006adcaf4ab7818807869 /lib/chef | |
parent | 96d293d8635860ae92b15d527805e237842c4ab3 (diff) | |
download | chef-c405b7ae06b264d16e808aadd987fbd4062fc2e3.tar.gz |
Remove support for unsupported opensuse < 42 from group provider
We had a few places where we checked for legacy opensuse platforms. Chef 15 doesn't support this platform and you won't be able to find binaries via omnitruck. We might as well yank out a bit of provider logic.
Also for some reason usermod has logic in a method for suse, but the provider didn't support that.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/provider/group/groupadd.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/group/suse.rb | 3 | ||||
-rw-r--r-- | lib/chef/provider/group/usermod.rb | 5 |
3 files changed, 4 insertions, 6 deletions
diff --git a/lib/chef/provider/group/groupadd.rb b/lib/chef/provider/group/groupadd.rb index fb8f306034..dd99a1c49a 100644 --- a/lib/chef/provider/group/groupadd.rb +++ b/lib/chef/provider/group/groupadd.rb @@ -1,6 +1,6 @@ # # Author:: AJ Christensen (<aj@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. +# Copyright:: Copyright 2008-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/chef/provider/group/suse.rb b/lib/chef/provider/group/suse.rb index 7e8473c901..3f4300278f 100644 --- a/lib/chef/provider/group/suse.rb +++ b/lib/chef/provider/group/suse.rb @@ -1,6 +1,6 @@ # # Author:: AJ Christensen (<aj@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. +# Copyright:: Copyright 2008-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -23,7 +23,6 @@ class Chef class Provider class Group class Suse < Chef::Provider::Group::Groupadd - provides :group, platform: "opensuse", platform_version: "< 12.3" provides :group, platform: "suse", platform_version: "< 12.0" def load_current_resource diff --git a/lib/chef/provider/group/usermod.rb b/lib/chef/provider/group/usermod.rb index 846c58fbc1..34a563787f 100644 --- a/lib/chef/provider/group/usermod.rb +++ b/lib/chef/provider/group/usermod.rb @@ -1,6 +1,6 @@ # # Author:: AJ Christensen (<aj@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. +# Copyright:: Copyright 2008-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,7 +24,6 @@ class Chef class Usermod < Chef::Provider::Group::Groupadd provides :group, os: %w{openbsd solaris2} - provides :group, platform: "opensuse" def load_current_resource super @@ -79,7 +78,7 @@ class Chef case node[:platform] when "openbsd", "netbsd", "aix", "solaris2", "smartos", "omnios" "-G" - when "solaris", "suse", "opensuse" + when "solaris" [ "-a", "-G" ] end end |