summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-10-29 10:05:28 -0700
committerGitHub <noreply@github.com>2020-10-29 10:05:28 -0700
commit450a20403a4fe925ad0223c302ec2e3d31cc5888 (patch)
treedb18bdc23705adebec1014a83924053a765a13d6
parentcaf7c430311eb583cee71eba4a075ea1e6bc3832 (diff)
parent8f1adc863048a24bf245254b37f87765fcf11e34 (diff)
downloadchef-450a20403a4fe925ad0223c302ec2e3d31cc5888.tar.gz
Merge pull request #10573 from chef/nexentacore
Remove support for nexentacore and opensolaris which are both a decade EOL
-rw-r--r--chef-utils/README.md6
-rw-r--r--chef-utils/lib/chef-utils/dsl/platform.rb13
-rw-r--r--chef-utils/lib/chef-utils/dsl/platform_family.rb2
-rw-r--r--cspell.json2
-rw-r--r--lib/chef/provider/package/ips.rb2
-rw-r--r--lib/chef/provider/package/solaris.rb1
-rw-r--r--lib/chef/provider/user/solaris.rb2
-rw-r--r--lib/chef/resource/solaris_package.rb1
-rw-r--r--lib/chef/resource/windows_service.rb1
-rw-r--r--spec/functional/resource/cron_spec.rb6
-rw-r--r--spec/unit/provider_resolver_spec.rb10
-rw-r--r--spec/unit/resource/solaris_package_spec.rb18
12 files changed, 16 insertions, 48 deletions
diff --git a/chef-utils/README.md b/chef-utils/README.md
index 6bfd97a1c4..d3088a7bc2 100644
--- a/chef-utils/README.md
+++ b/chef-utils/README.md
@@ -43,7 +43,7 @@ Super Families:
* `fedora_based?` - anything of fedora lineage (fedora, redhat, centos, amazon, pidora, etc)
* `rpm_based?`- all `fedora_based` systems plus `suse` and any future linux distros based on RPM (excluding AIX)
-* `solaris_based?`- all solaris-derived systems (opensolaris, nexentacore, omnios, smartos, etc)
+* `solaris_based?`- all solaris-derived systems (omnios, smartos, openindiana, etc)
* `bsd_based?`- all bsd-derived systems (freebsd, netbsd, openbsd, dragonflybsd).
### Platform Helpers
@@ -64,11 +64,9 @@ The Platform helpers provide an alternative to comparing values from `node['plat
* `linuxmint_platform?`
* `macos_platform?`
* `netbsd_platform?`
-* `nexentacore_platform?`
* `omnios_platform?`
* `openbsd_platform?`
* `openindiana_platform?`
-* `opensolaris_platform?`
* `opensuse_platform?`
* `oracle_platform?`
* `raspbian_platform?`
@@ -86,10 +84,8 @@ For compatibility with old chef-sugar code the following aliases work for backwa
* `centos?`
* `clearos?`
* `linuxmint?`
-* `nexentacore?`
* `omnios?`
* `openindiana?`
-* `opensolaris?`
* `opensuse?`
* `oracle?`
* `raspbian?`
diff --git a/chef-utils/lib/chef-utils/dsl/platform.rb b/chef-utils/lib/chef-utils/dsl/platform.rb
index c2ac460ff1..322cf27cb2 100644
--- a/chef-utils/lib/chef-utils/dsl/platform.rb
+++ b/chef-utils/lib/chef-utils/dsl/platform.rb
@@ -235,19 +235,6 @@ module ChefUtils
# chef-sugar backcompat method
alias_method :openindiana?, :openindiana_platform?
- # Determine if the current node is Nexenta Core Platform aka Nexenta OS.
- #
- # @param [Chef::Node] node the node to check
- # @since 15.5
- #
- # @return [Boolean]
- #
- def nexentacore_platform?(node = __getnode)
- node["platform"] == "nexentacore"
- end
- # chef-sugar backcompat method
- alias_method :nexentacore?, :nexentacore_platform?
-
# Determine if the current node is AIX.
#
# @param [Chef::Node] node the node to check
diff --git a/chef-utils/lib/chef-utils/dsl/platform_family.rb b/chef-utils/lib/chef-utils/dsl/platform_family.rb
index cfe6b617e5..d666229688 100644
--- a/chef-utils/lib/chef-utils/dsl/platform_family.rb
+++ b/chef-utils/lib/chef-utils/dsl/platform_family.rb
@@ -320,7 +320,7 @@ module ChefUtils
# @return [Boolean]
#
def solaris_based?(node = __getnode)
- %w{solaris2 smartos omnios openindiana opensolaris nexentacore}.include?(node["platform"])
+ %w{solaris2 smartos omnios openindiana}.include?(node["platform"])
end
# All of the BSD-lineage.
diff --git a/cspell.json b/cspell.json
index a59f601341..76e51788b9 100644
--- a/cspell.json
+++ b/cspell.json
@@ -1064,8 +1064,6 @@
"newguard",
"newpkg",
"newval",
- "Nexenta",
- "nexentacore",
"nillable",
"Nimisha",
"nlist",
diff --git a/lib/chef/provider/package/ips.rb b/lib/chef/provider/package/ips.rb
index 129447dcab..ee997d147f 100644
--- a/lib/chef/provider/package/ips.rb
+++ b/lib/chef/provider/package/ips.rb
@@ -26,7 +26,7 @@ class Chef
class Package
class Ips < Chef::Provider::Package
- provides :package, platform: %w{openindiana opensolaris omnios solaris2}
+ provides :package, platform: %w{openindiana omnios solaris2}
provides :ips_package
attr_accessor :virtual
diff --git a/lib/chef/provider/package/solaris.rb b/lib/chef/provider/package/solaris.rb
index cf180ec401..95a37a5ecc 100644
--- a/lib/chef/provider/package/solaris.rb
+++ b/lib/chef/provider/package/solaris.rb
@@ -26,7 +26,6 @@ class Chef
include Chef::Mixin::GetSourceFromPackage
- provides :package, platform: "nexentacore"
provides :package, platform: "solaris2", platform_version: "< 5.11"
provides :solaris_package
diff --git a/lib/chef/provider/user/solaris.rb b/lib/chef/provider/user/solaris.rb
index 2da1d754e4..abf6cd94c8 100644
--- a/lib/chef/provider/user/solaris.rb
+++ b/lib/chef/provider/user/solaris.rb
@@ -25,7 +25,7 @@ class Chef
class User
class Solaris < Chef::Provider::User
provides :solaris_user
- provides :user, os: %w{openindiana opensolaris illumos omnios solaris2 smartos}
+ provides :user, os: %w{openindiana illumos omnios solaris2 smartos}
PASSWORD_FILE = "/etc/shadow".freeze
diff --git a/lib/chef/resource/solaris_package.rb b/lib/chef/resource/solaris_package.rb
index c6f5d17ce9..9c5d3e330b 100644
--- a/lib/chef/resource/solaris_package.rb
+++ b/lib/chef/resource/solaris_package.rb
@@ -25,7 +25,6 @@ class Chef
unified_mode true
provides :solaris_package
- provides :package, os: "solaris2", platform_family: "nexentacore"
provides :package, os: "solaris2", platform_family: "solaris2", platform_version: "<= 5.10"
description "Use the **solaris_package** resource to manage packages on the Solaris platform."
diff --git a/lib/chef/resource/windows_service.rb b/lib/chef/resource/windows_service.rb
index 5920f61011..779c0e22ad 100644
--- a/lib/chef/resource/windows_service.rb
+++ b/lib/chef/resource/windows_service.rb
@@ -147,7 +147,6 @@ class Chef
```
DOC
-
allowed_actions :configure_startup, :create, :delete, :configure
property :timeout, Integer,
diff --git a/spec/functional/resource/cron_spec.rb b/spec/functional/resource/cron_spec.rb
index 009234f527..fa53eb08a1 100644
--- a/spec/functional/resource/cron_spec.rb
+++ b/spec/functional/resource/cron_spec.rb
@@ -26,7 +26,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do
# Platform specific validation routines.
def cron_should_exists(cron_name, command)
case ohai[:platform]
- when "aix", "opensolaris", "solaris2", "omnios"
+ when "aix", "solaris2", "omnios"
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{cron_name}\"").exitstatus).to eq(0)
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{cron_name}\"").stdout.lines.to_a.size).to eq(1)
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{command}\"").exitstatus).to eq(0)
@@ -41,7 +41,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do
def cron_should_not_exists(cron_name)
case ohai[:platform]
- when "aix", "opensolaris", "solaris2", "omnios"
+ when "aix", "solaris2", "omnios"
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{cron_name}\"").exitstatus).to eq(1)
expect(shell_out("crontab -l #{new_resource.user} | grep \"#{new_resource.command}\"").stdout.lines.to_a.size).to eq(0)
else
@@ -113,7 +113,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do
end
end
- exclude_solaris = %w{solaris opensolaris solaris2 omnios}.include?(ohai[:platform])
+ exclude_solaris = %w{solaris solaris2 omnios}.include?(ohai[:platform])
describe "create action with various attributes", external: exclude_solaris do
def create_and_validate_with_property(resource, attribute, value)
if ohai[:platform] == "aix"
diff --git a/spec/unit/provider_resolver_spec.rb b/spec/unit/provider_resolver_spec.rb
index 6d770c1935..8b1f82ec6d 100644
--- a/spec/unit/provider_resolver_spec.rb
+++ b/spec/unit/provider_resolver_spec.rb
@@ -424,7 +424,7 @@ describe Chef::ProviderResolver do
it_behaves_like "a debian platform using the insserv provider"
end
- on_platform %w{solaris2 openindiana opensolaris nexentacore omnios smartos}, os: "solaris2", platform_version: "5.11" do
+ on_platform %w{solaris2 openindiana omnios smartos}, os: "solaris2", platform_version: "5.11" do
it "returns a Solaris provider" do
stub_service_providers
stub_service_configs
@@ -811,10 +811,6 @@ describe Chef::ProviderResolver do
},
"solaris2" => {
- "nexentacore" => {
- "3.1.4" => {
- },
- },
"omnios" => {
"3.1.4" => {
user: [ Chef::Resource::User::SolarisUser, Chef::Provider::User::Solaris ],
@@ -824,10 +820,6 @@ describe Chef::ProviderResolver do
"3.1.4" => {
},
},
- "opensolaris" => {
- "3.1.4" => {
- },
- },
"solaris2" => {
user: [ Chef::Resource::User::SolarisUser, Chef::Provider::User::Solaris ],
"5.11" => {
diff --git a/spec/unit/resource/solaris_package_spec.rb b/spec/unit/resource/solaris_package_spec.rb
index 57cf6e7a3a..e663ab5684 100644
--- a/spec/unit/resource/solaris_package_spec.rb
+++ b/spec/unit/resource/solaris_package_spec.rb
@@ -21,16 +21,14 @@ require "support/shared/unit/resource/static_provider_resolution"
describe Chef::Resource::SolarisPackage, "initialize" do
- %w{solaris2 nexentacore}.each do |platform_family|
- static_provider_resolution(
- resource: Chef::Resource::SolarisPackage,
- provider: Chef::Provider::Package::Solaris,
- name: :solaris_package,
- action: :install,
- os: "solaris2",
- platform_family: platform_family
- )
- end
+ static_provider_resolution(
+ resource: Chef::Resource::SolarisPackage,
+ provider: Chef::Provider::Package::Solaris,
+ name: :solaris_package,
+ action: :install,
+ os: "solaris2",
+ platform_family: "solaris2"
+ )
let(:resource) { Chef::Resource::SolarisPackage.new("foo") }