diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2022-03-17 12:35:31 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2022-03-18 09:57:47 -0700 |
commit | 932e7f8a697b025267225f3a637a254c40204922 (patch) | |
tree | 847d056249a6caf19c5343a35b4741496c66d07f | |
parent | ef88db2cd28264d42901cbd2cbf987b484ca55f8 (diff) | |
download | chef-932e7f8a697b025267225f3a637a254c40204922.tar.gz |
Chef-18: Enable unifed_mode by default
This is the breaking change for Chef 18, which was announced
throughout the Chef-17 cycle.
This should never be backported to Chef 17 or before
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
171 files changed, 1 insertions, 192 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb index 7d1937ed3a..87e0b6bab2 100644 --- a/chef-config/lib/chef-config/config.rb +++ b/chef-config/lib/chef-config/config.rb @@ -994,7 +994,7 @@ module ChefConfig # applying in "compile" mode, with no "converge" mode. False is backwards compatible # setting for Chef 11-15 behavior. This will break forward notifications. # - default :resource_unified_mode_default, false + default :resource_unified_mode_default, true # At the beginning of the Chef Client run, the cookbook manifests are downloaded which # contain URLs for every file in every relevant cookbook. Most of the files diff --git a/lib/chef/resource/alternatives.rb b/lib/chef/resource/alternatives.rb index 59939543ab..1f2f3e6a33 100644 --- a/lib/chef/resource/alternatives.rb +++ b/lib/chef/resource/alternatives.rb @@ -22,7 +22,6 @@ require_relative "../resource" class Chef class Resource class Alternatives < Chef::Resource - unified_mode true provides(:alternatives) { true } diff --git a/lib/chef/resource/apt_package.rb b/lib/chef/resource/apt_package.rb index 448ebce4e5..af485d85ec 100644 --- a/lib/chef/resource/apt_package.rb +++ b/lib/chef/resource/apt_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class AptPackage < Chef::Resource::Package - unified_mode true provides :apt_package, target_mode: true provides :package, platform_family: "debian", target_mode: true diff --git a/lib/chef/resource/apt_preference.rb b/lib/chef/resource/apt_preference.rb index 09e56b1edf..ff5b62aac8 100644 --- a/lib/chef/resource/apt_preference.rb +++ b/lib/chef/resource/apt_preference.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class AptPreference < Chef::Resource - unified_mode true provides(:apt_preference) { true } diff --git a/lib/chef/resource/apt_repository.rb b/lib/chef/resource/apt_repository.rb index 97dc26b89e..80df76ef4c 100644 --- a/lib/chef/resource/apt_repository.rb +++ b/lib/chef/resource/apt_repository.rb @@ -26,7 +26,6 @@ end class Chef class Resource class AptRepository < Chef::Resource - unified_mode true provides(:apt_repository) { true } diff --git a/lib/chef/resource/apt_update.rb b/lib/chef/resource/apt_update.rb index cfecef02cf..b4068c8903 100644 --- a/lib/chef/resource/apt_update.rb +++ b/lib/chef/resource/apt_update.rb @@ -22,7 +22,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class AptUpdate < Chef::Resource - unified_mode true provides(:apt_update) { true } diff --git a/lib/chef/resource/archive_file.rb b/lib/chef/resource/archive_file.rb index 1a27786336..c004823c4e 100644 --- a/lib/chef/resource/archive_file.rb +++ b/lib/chef/resource/archive_file.rb @@ -30,7 +30,6 @@ end class Chef class Resource class ArchiveFile < Chef::Resource - unified_mode true provides :archive_file provides :libarchive_file # legacy cookbook name diff --git a/lib/chef/resource/bash.rb b/lib/chef/resource/bash.rb index 9ed6dc68d5..43f20a75ab 100644 --- a/lib/chef/resource/bash.rb +++ b/lib/chef/resource/bash.rb @@ -21,7 +21,6 @@ require_relative "script" class Chef class Resource class Bash < Chef::Resource::Script - unified_mode true provides :bash diff --git a/lib/chef/resource/batch.rb b/lib/chef/resource/batch.rb index bbb5e73905..548e317ff2 100644 --- a/lib/chef/resource/batch.rb +++ b/lib/chef/resource/batch.rb @@ -21,7 +21,6 @@ require_relative "windows_script" class Chef class Resource class Batch < Chef::Resource::WindowsScript - unified_mode true provides :batch diff --git a/lib/chef/resource/bff_package.rb b/lib/chef/resource/bff_package.rb index ffe5dfac1b..b91934838e 100644 --- a/lib/chef/resource/bff_package.rb +++ b/lib/chef/resource/bff_package.rb @@ -22,7 +22,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class BffPackage < Chef::Resource::Package - unified_mode true provides :bff_package diff --git a/lib/chef/resource/breakpoint.rb b/lib/chef/resource/breakpoint.rb index 360c064ff0..45a04e184d 100644 --- a/lib/chef/resource/breakpoint.rb +++ b/lib/chef/resource/breakpoint.rb @@ -22,7 +22,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class Breakpoint < Chef::Resource - unified_mode true provides :breakpoint, target_mode: true diff --git a/lib/chef/resource/build_essential.rb b/lib/chef/resource/build_essential.rb index 8b4c142e0f..bb73b311ea 100644 --- a/lib/chef/resource/build_essential.rb +++ b/lib/chef/resource/build_essential.rb @@ -19,7 +19,6 @@ require_relative "../resource" class Chef class Resource class BuildEssential < Chef::Resource - unified_mode true provides(:build_essential) { true } diff --git a/lib/chef/resource/cab_package.rb b/lib/chef/resource/cab_package.rb index 904fe81701..5ee1d595d9 100644 --- a/lib/chef/resource/cab_package.rb +++ b/lib/chef/resource/cab_package.rb @@ -23,7 +23,6 @@ class Chef class Resource class CabPackage < Chef::Resource::Package include Chef::Mixin::Uris - unified_mode true provides :cab_package diff --git a/lib/chef/resource/chef_client_config.rb b/lib/chef/resource/chef_client_config.rb index e02010a147..a9b1fa825e 100644 --- a/lib/chef/resource/chef_client_config.rb +++ b/lib/chef/resource/chef_client_config.rb @@ -20,7 +20,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class ChefClientConfig < Chef::Resource - unified_mode true provides :chef_client_config diff --git a/lib/chef/resource/chef_client_cron.rb b/lib/chef/resource/chef_client_cron.rb index 726fd58795..26894c5ae3 100644 --- a/lib/chef/resource/chef_client_cron.rb +++ b/lib/chef/resource/chef_client_cron.rb @@ -22,7 +22,6 @@ require "digest/md5" unless defined?(Digest::MD5) class Chef class Resource class ChefClientCron < Chef::Resource - unified_mode true provides :chef_client_cron diff --git a/lib/chef/resource/chef_client_launchd.rb b/lib/chef/resource/chef_client_launchd.rb index 27a4c184ba..0fbe7b9263 100644 --- a/lib/chef/resource/chef_client_launchd.rb +++ b/lib/chef/resource/chef_client_launchd.rb @@ -19,7 +19,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class ChefClientLaunchd < Chef::Resource - unified_mode true provides :chef_client_launchd diff --git a/lib/chef/resource/chef_client_scheduled_task.rb b/lib/chef/resource/chef_client_scheduled_task.rb index 31ceb82238..a7e0d0761c 100644 --- a/lib/chef/resource/chef_client_scheduled_task.rb +++ b/lib/chef/resource/chef_client_scheduled_task.rb @@ -20,7 +20,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class ChefClientScheduledTask < Chef::Resource - unified_mode true provides :chef_client_scheduled_task diff --git a/lib/chef/resource/chef_client_systemd_timer.rb b/lib/chef/resource/chef_client_systemd_timer.rb index 0df5852514..38c2c0a038 100644 --- a/lib/chef/resource/chef_client_systemd_timer.rb +++ b/lib/chef/resource/chef_client_systemd_timer.rb @@ -20,7 +20,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class ChefClientSystemdTimer < Chef::Resource - unified_mode true provides :chef_client_systemd_timer diff --git a/lib/chef/resource/chef_client_trusted_certificate.rb b/lib/chef/resource/chef_client_trusted_certificate.rb index 590db0238e..326e7a13ca 100644 --- a/lib/chef/resource/chef_client_trusted_certificate.rb +++ b/lib/chef/resource/chef_client_trusted_certificate.rb @@ -20,7 +20,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class ChefClientTrustedCertificate < Chef::Resource - unified_mode true provides :chef_client_trusted_certificate diff --git a/lib/chef/resource/chef_gem.rb b/lib/chef/resource/chef_gem.rb index 2c5b342bce..680a673260 100644 --- a/lib/chef/resource/chef_gem.rb +++ b/lib/chef/resource/chef_gem.rb @@ -23,7 +23,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class ChefGem < Chef::Resource::Package::GemPackage - unified_mode true provides :chef_gem description <<~DESC diff --git a/lib/chef/resource/chef_handler.rb b/lib/chef/resource/chef_handler.rb index 099f95a52e..f32513aef1 100644 --- a/lib/chef/resource/chef_handler.rb +++ b/lib/chef/resource/chef_handler.rb @@ -21,7 +21,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class ChefHandler < Chef::Resource - unified_mode true provides(:chef_handler) { true } diff --git a/lib/chef/resource/chef_sleep.rb b/lib/chef/resource/chef_sleep.rb index 8c57302017..5f03a2173e 100644 --- a/lib/chef/resource/chef_sleep.rb +++ b/lib/chef/resource/chef_sleep.rb @@ -22,8 +22,6 @@ class Chef class ChefSleep < Chef::Resource provides :chef_sleep - unified_mode true - description "Use the **chef_sleep** resource to pause (sleep) for a number of seconds during a #{ChefUtils::Dist::Infra::PRODUCT} run. Only use this resource when a command or service exits successfully but is not ready for the next step in a recipe." introduced "15.5" examples <<~DOC diff --git a/lib/chef/resource/chef_vault_secret.rb b/lib/chef/resource/chef_vault_secret.rb index 5f535a95f8..e19ebcdee8 100644 --- a/lib/chef/resource/chef_vault_secret.rb +++ b/lib/chef/resource/chef_vault_secret.rb @@ -21,7 +21,6 @@ autoload :ChefVault, "chef-vault" class Chef class Resource class ChefVaultSecret < Chef::Resource - unified_mode true provides :chef_vault_secret diff --git a/lib/chef/resource/chocolatey_config.rb b/lib/chef/resource/chocolatey_config.rb index 61a14d70b7..c4d768bc06 100644 --- a/lib/chef/resource/chocolatey_config.rb +++ b/lib/chef/resource/chocolatey_config.rb @@ -17,7 +17,6 @@ class Chef class Resource class ChocolateyConfig < Chef::Resource - unified_mode true provides :chocolatey_config diff --git a/lib/chef/resource/chocolatey_feature.rb b/lib/chef/resource/chocolatey_feature.rb index 67c46bc783..54f3e92c9e 100644 --- a/lib/chef/resource/chocolatey_feature.rb +++ b/lib/chef/resource/chocolatey_feature.rb @@ -17,7 +17,6 @@ class Chef class Resource class ChocolateyFeature < Chef::Resource - unified_mode true provides :chocolatey_feature description "Use the **chocolatey_feature** resource to enable and disable Chocolatey features. Note: The Chocolatey package manager is not installed on Windows by default. You will need to install it prior to using this resource by adding the [Chocolatey cookbook](https://supermarket.chef.io/cookbooks/chocolatey/) to your node's run list." diff --git a/lib/chef/resource/chocolatey_package.rb b/lib/chef/resource/chocolatey_package.rb index f7f221c025..a9bbf9f720 100644 --- a/lib/chef/resource/chocolatey_package.rb +++ b/lib/chef/resource/chocolatey_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class ChocolateyPackage < Chef::Resource::Package - unified_mode true provides :chocolatey_package diff --git a/lib/chef/resource/chocolatey_source.rb b/lib/chef/resource/chocolatey_source.rb index 2496a86cd0..ad0461ffd2 100644 --- a/lib/chef/resource/chocolatey_source.rb +++ b/lib/chef/resource/chocolatey_source.rb @@ -17,7 +17,6 @@ class Chef class Resource class ChocolateySource < Chef::Resource - unified_mode true provides :chocolatey_source description "Use the **chocolatey_source** resource to add, remove, enable, or disable Chocolatey sources. Note: The Chocolatey package manager is not installed on Windows by default. You will need to install it prior to using this resource by adding the [Chocolatey cookbook](https://supermarket.chef.io/cookbooks/chocolatey/) to your node's run list." diff --git a/lib/chef/resource/cookbook_file.rb b/lib/chef/resource/cookbook_file.rb index f1ae195426..e3d55d1241 100644 --- a/lib/chef/resource/cookbook_file.rb +++ b/lib/chef/resource/cookbook_file.rb @@ -27,7 +27,6 @@ class Chef class Resource class CookbookFile < Chef::Resource::File include Chef::Mixin::Securable - unified_mode true provides :cookbook_file diff --git a/lib/chef/resource/cron/_cron_shared.rb b/lib/chef/resource/cron/_cron_shared.rb index 3dba74e77f..7f6e45442e 100644 --- a/lib/chef/resource/cron/_cron_shared.rb +++ b/lib/chef/resource/cron/_cron_shared.rb @@ -1,4 +1,3 @@ -unified_mode true TIMEOUT_OPTS = %w{duration preserve-status foreground kill-after signal}.freeze TIMEOUT_REGEX = /\A\S+/.freeze diff --git a/lib/chef/resource/cron/cron.rb b/lib/chef/resource/cron/cron.rb index 18dfd1cdc3..279a0417cb 100644 --- a/lib/chef/resource/cron/cron.rb +++ b/lib/chef/resource/cron/cron.rb @@ -25,7 +25,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class Cron < Chef::Resource - unified_mode true use "cron_shared" diff --git a/lib/chef/resource/cron/cron_d.rb b/lib/chef/resource/cron/cron_d.rb index dffe46bcec..9bd53d38b2 100644 --- a/lib/chef/resource/cron/cron_d.rb +++ b/lib/chef/resource/cron/cron_d.rb @@ -23,7 +23,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class CronD < Chef::Resource - unified_mode true use "cron_shared" diff --git a/lib/chef/resource/cron_access.rb b/lib/chef/resource/cron_access.rb index 233931e64a..e506b4383c 100644 --- a/lib/chef/resource/cron_access.rb +++ b/lib/chef/resource/cron_access.rb @@ -23,7 +23,6 @@ require_relative "../resource" class Chef class Resource class CronAccess < Chef::Resource - unified_mode true provides :cron_access provides(:cron_manage) # legacy name @todo in Chef 15 we should { true } this so it wins over the cookbook diff --git a/lib/chef/resource/csh.rb b/lib/chef/resource/csh.rb index 6f0c37d01e..9c7016a3f5 100644 --- a/lib/chef/resource/csh.rb +++ b/lib/chef/resource/csh.rb @@ -21,7 +21,6 @@ require_relative "script" class Chef class Resource class Csh < Chef::Resource::Script - unified_mode true provides :csh diff --git a/lib/chef/resource/directory.rb b/lib/chef/resource/directory.rb index f8950d47f5..a8cbcf1aed 100644 --- a/lib/chef/resource/directory.rb +++ b/lib/chef/resource/directory.rb @@ -24,7 +24,6 @@ require_relative "../mixin/securable" class Chef class Resource class Directory < Chef::Resource - unified_mode true provides :directory diff --git a/lib/chef/resource/dmg_package.rb b/lib/chef/resource/dmg_package.rb index 9f898e92ea..c3bdbf81cd 100644 --- a/lib/chef/resource/dmg_package.rb +++ b/lib/chef/resource/dmg_package.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class DmgPackage < Chef::Resource - unified_mode true provides(:dmg_package) { true } diff --git a/lib/chef/resource/dnf_package.rb b/lib/chef/resource/dnf_package.rb index aad0192490..a17560ceea 100644 --- a/lib/chef/resource/dnf_package.rb +++ b/lib/chef/resource/dnf_package.rb @@ -26,7 +26,6 @@ class Chef extend Chef::Mixin::Which extend Chef::Mixin::ShellOut - unified_mode true provides :dnf_package # all rhel variants >= 8 will use DNF diff --git a/lib/chef/resource/dpkg_package.rb b/lib/chef/resource/dpkg_package.rb index 143aaee699..236bcbede0 100644 --- a/lib/chef/resource/dpkg_package.rb +++ b/lib/chef/resource/dpkg_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class DpkgPackage < Chef::Resource::Package - unified_mode true provides :dpkg_package diff --git a/lib/chef/resource/dsc_resource.rb b/lib/chef/resource/dsc_resource.rb index a869e2acc4..2d6fe242e9 100644 --- a/lib/chef/resource/dsc_resource.rb +++ b/lib/chef/resource/dsc_resource.rb @@ -20,7 +20,6 @@ require_relative "../dsl/powershell" class Chef class Resource class DscResource < Chef::Resource - unified_mode true provides :dsc_resource diff --git a/lib/chef/resource/dsc_script.rb b/lib/chef/resource/dsc_script.rb index 3a14da15f0..ac18f7e11e 100644 --- a/lib/chef/resource/dsc_script.rb +++ b/lib/chef/resource/dsc_script.rb @@ -26,7 +26,6 @@ class Chef class DscScript < Chef::Resource include Chef::DSL::Powershell - unified_mode true provides :dsc_script description <<~DESC diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb index 5c84eb3835..a7ff013b4c 100644 --- a/lib/chef/resource/execute.rb +++ b/lib/chef/resource/execute.rb @@ -23,7 +23,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class Execute < Chef::Resource - unified_mode true provides :execute, target_mode: true diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb index 05cb4658d5..7d20cc2ea5 100644 --- a/lib/chef/resource/file.rb +++ b/lib/chef/resource/file.rb @@ -28,7 +28,6 @@ class Chef class Resource class File < Chef::Resource include Chef::Mixin::Securable - unified_mode true provides :file diff --git a/lib/chef/resource/freebsd_package.rb b/lib/chef/resource/freebsd_package.rb index 081adaf702..713aa26e0c 100644 --- a/lib/chef/resource/freebsd_package.rb +++ b/lib/chef/resource/freebsd_package.rb @@ -25,7 +25,6 @@ require_relative "../provider/package/freebsd/pkgng" class Chef class Resource class FreebsdPackage < Chef::Resource::Package - unified_mode true provides :freebsd_package provides :package, platform: "freebsd" diff --git a/lib/chef/resource/gem_package.rb b/lib/chef/resource/gem_package.rb index 42065d7d86..ab11a873e2 100644 --- a/lib/chef/resource/gem_package.rb +++ b/lib/chef/resource/gem_package.rb @@ -22,7 +22,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class GemPackage < Chef::Resource::Package - unified_mode true provides :gem_package description <<~DESC diff --git a/lib/chef/resource/group.rb b/lib/chef/resource/group.rb index ffb6e0fd8b..296bcf4a0b 100644 --- a/lib/chef/resource/group.rb +++ b/lib/chef/resource/group.rb @@ -20,7 +20,6 @@ class Chef class Resource class Group < Chef::Resource - unified_mode true state_attrs :members description "Use the **group** resource to manage a local group." diff --git a/lib/chef/resource/habitat/habitat_package.rb b/lib/chef/resource/habitat/habitat_package.rb index 74221f5d71..e6de6ceb8c 100644 --- a/lib/chef/resource/habitat/habitat_package.rb +++ b/lib/chef/resource/habitat/habitat_package.rb @@ -21,7 +21,6 @@ require_relative "../package" class Chef class Resource class HabitatPackage < Chef::Resource::Package - unified_mode true provides :habitat_package use "habitat_shared" diff --git a/lib/chef/resource/habitat/habitat_sup.rb b/lib/chef/resource/habitat/habitat_sup.rb index 6b8fbccf71..a8d6ab3494 100644 --- a/lib/chef/resource/habitat/habitat_sup.rb +++ b/lib/chef/resource/habitat/habitat_sup.rb @@ -20,7 +20,6 @@ require_relative "../../resource" class Chef class Resource class HabitatSup < Chef::Resource - unified_mode true provides :habitat_sup do |_node| false diff --git a/lib/chef/resource/habitat_config.rb b/lib/chef/resource/habitat_config.rb index 9f4ac89370..5c06fa43f5 100644 --- a/lib/chef/resource/habitat_config.rb +++ b/lib/chef/resource/habitat_config.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class HabitatConfig < Chef::Resource - unified_mode true provides :habitat_config diff --git a/lib/chef/resource/habitat_install.rb b/lib/chef/resource/habitat_install.rb index daecc8d60a..4c2903b399 100644 --- a/lib/chef/resource/habitat_install.rb +++ b/lib/chef/resource/habitat_install.rb @@ -19,7 +19,6 @@ require_relative "../resource" class Chef class Resource class HabitatInstall < Chef::Resource - unified_mode true provides :habitat_install description "Use the **habitat_install** resource to install Chef Habitat." diff --git a/lib/chef/resource/habitat_service.rb b/lib/chef/resource/habitat_service.rb index 59b7b877e1..dc4ebf88b0 100644 --- a/lib/chef/resource/habitat_service.rb +++ b/lib/chef/resource/habitat_service.rb @@ -20,7 +20,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class HabitatService < Chef::Resource - unified_mode true provides :habitat_service description "Use the **habitat_service** resource to manage Chef Habitat services. This requires that `core/hab-sup` be running as a service. See the `habitat_sup` resource documentation for more information. Note: Applications may run as a specific user. Often with Habitat, the default is `hab`, or `root`. If the application requires another user, then it should be created with Chef's `user` resource." diff --git a/lib/chef/resource/habitat_user_toml.rb b/lib/chef/resource/habitat_user_toml.rb index 723bfdc427..92434650cc 100644 --- a/lib/chef/resource/habitat_user_toml.rb +++ b/lib/chef/resource/habitat_user_toml.rb @@ -16,7 +16,6 @@ require_relative "../resource" class Chef class Resource class HabitatUserToml < Chef::Resource - unified_mode true provides :habitat_user_toml description "Use the **habitat_user_toml** to template a `user.toml` for Chef Habitat services. Configurations set in the `user.toml` override the `default.toml` for a given package, which makes it an alternative to applying service group level configuration." diff --git a/lib/chef/resource/homebrew_cask.rb b/lib/chef/resource/homebrew_cask.rb index 9bc187b712..5a233e7db1 100644 --- a/lib/chef/resource/homebrew_cask.rb +++ b/lib/chef/resource/homebrew_cask.rb @@ -23,7 +23,6 @@ require_relative "../mixin/homebrew_user" class Chef class Resource class HomebrewCask < Chef::Resource - unified_mode true provides(:homebrew_cask) { true } diff --git a/lib/chef/resource/homebrew_package.rb b/lib/chef/resource/homebrew_package.rb index 040eff9f59..2d8efdb82b 100644 --- a/lib/chef/resource/homebrew_package.rb +++ b/lib/chef/resource/homebrew_package.rb @@ -24,7 +24,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class HomebrewPackage < Chef::Resource::Package - unified_mode true provides :homebrew_package provides :package, os: "darwin" diff --git a/lib/chef/resource/homebrew_tap.rb b/lib/chef/resource/homebrew_tap.rb index a150210951..d8598dca80 100644 --- a/lib/chef/resource/homebrew_tap.rb +++ b/lib/chef/resource/homebrew_tap.rb @@ -23,7 +23,6 @@ require_relative "../mixin/homebrew_user" class Chef class Resource class HomebrewTap < Chef::Resource - unified_mode true provides(:homebrew_tap) { true } diff --git a/lib/chef/resource/homebrew_update.rb b/lib/chef/resource/homebrew_update.rb index ee353f1fe5..00f11b3906 100644 --- a/lib/chef/resource/homebrew_update.rb +++ b/lib/chef/resource/homebrew_update.rb @@ -27,8 +27,6 @@ class Chef class HomebrewUpdate < Chef::Resource include Chef::Mixin::HomebrewUser - unified_mode true - provides(:homebrew_update) { true } description "Use the **homebrew_update** resource to manage Homebrew repository updates on macOS." diff --git a/lib/chef/resource/hostname.rb b/lib/chef/resource/hostname.rb index ab4ab73961..d8ae432a1f 100644 --- a/lib/chef/resource/hostname.rb +++ b/lib/chef/resource/hostname.rb @@ -23,7 +23,6 @@ class Chef # Sets the hostname and updates /etc/hosts on *nix systems # @since 14.0.0 class Hostname < Chef::Resource - unified_mode true provides :hostname diff --git a/lib/chef/resource/http_request.rb b/lib/chef/resource/http_request.rb index 8a1354e6cd..65e1df5a56 100644 --- a/lib/chef/resource/http_request.rb +++ b/lib/chef/resource/http_request.rb @@ -22,7 +22,6 @@ require_relative "../resource" class Chef class Resource class HttpRequest < Chef::Resource - unified_mode true provides :http_request diff --git a/lib/chef/resource/ifconfig.rb b/lib/chef/resource/ifconfig.rb index 2c5262fa97..d9323b5550 100644 --- a/lib/chef/resource/ifconfig.rb +++ b/lib/chef/resource/ifconfig.rb @@ -22,7 +22,6 @@ require_relative "../resource" class Chef class Resource class Ifconfig < Chef::Resource - unified_mode true provides :ifconfig diff --git a/lib/chef/resource/inspec_input.rb b/lib/chef/resource/inspec_input.rb index 8615bdcdf5..f301d3d79d 100644 --- a/lib/chef/resource/inspec_input.rb +++ b/lib/chef/resource/inspec_input.rb @@ -20,7 +20,6 @@ class Chef class Resource class InspecInput < Chef::Resource provides :inspec_input - unified_mode true description "Use the **inspec_input** resource to add an input to the Compliance Phase." introduced "17.5" diff --git a/lib/chef/resource/inspec_waiver.rb b/lib/chef/resource/inspec_waiver.rb index f518d80d7a..3f5dfbaac0 100644 --- a/lib/chef/resource/inspec_waiver.rb +++ b/lib/chef/resource/inspec_waiver.rb @@ -20,7 +20,6 @@ class Chef class Resource class InspecWaiver < Chef::Resource provides :inspec_waiver - unified_mode true description "Use the **inspec_waiver** resource to add a waiver to the Compliance Phase." introduced "17.5" diff --git a/lib/chef/resource/inspec_waiver_file_entry.rb b/lib/chef/resource/inspec_waiver_file_entry.rb index 2f3c806266..7ad31fd58d 100644 --- a/lib/chef/resource/inspec_waiver_file_entry.rb +++ b/lib/chef/resource/inspec_waiver_file_entry.rb @@ -24,7 +24,6 @@ class Chef class Resource class InspecWaiverFileEntry < Chef::Resource provides :inspec_waiver_file_entry - unified_mode true description "Use the **inspec_waiver_file_entry** resource to add or remove entries from an InSpec waiver file. This can be used in conjunction with the Compliance Phase." introduced "17.1" diff --git a/lib/chef/resource/ips_package.rb b/lib/chef/resource/ips_package.rb index a579a5a5a2..d8b1e058a8 100644 --- a/lib/chef/resource/ips_package.rb +++ b/lib/chef/resource/ips_package.rb @@ -22,7 +22,6 @@ require_relative "../provider/package/ips" class Chef class Resource class IpsPackage < ::Chef::Resource::Package - unified_mode true provides :ips_package provides :package, os: "solaris2" diff --git a/lib/chef/resource/kernel_module.rb b/lib/chef/resource/kernel_module.rb index 4084dcbd70..7e30691179 100644 --- a/lib/chef/resource/kernel_module.rb +++ b/lib/chef/resource/kernel_module.rb @@ -11,7 +11,6 @@ require_relative "../resource" class Chef class Resource class KernelModule < Chef::Resource - unified_mode true provides :kernel_module diff --git a/lib/chef/resource/ksh.rb b/lib/chef/resource/ksh.rb index 28d71970e7..0bbe0401f1 100644 --- a/lib/chef/resource/ksh.rb +++ b/lib/chef/resource/ksh.rb @@ -21,7 +21,6 @@ require_relative "script" class Chef class Resource class Ksh < Chef::Resource::Script - unified_mode true provides :ksh diff --git a/lib/chef/resource/launchd.rb b/lib/chef/resource/launchd.rb index 6a80ada7fa..cc607eedce 100644 --- a/lib/chef/resource/launchd.rb +++ b/lib/chef/resource/launchd.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class Launchd < Chef::Resource - unified_mode true provides :launchd description "Use the **launchd** resource to manage system-wide services (daemons) and per-user services (agents) on the macOS platform." diff --git a/lib/chef/resource/link.rb b/lib/chef/resource/link.rb index e1422d0d61..5ac7de8d49 100644 --- a/lib/chef/resource/link.rb +++ b/lib/chef/resource/link.rb @@ -24,7 +24,6 @@ class Chef class Resource class Link < Chef::Resource include Chef::Mixin::Securable - unified_mode true provides :link diff --git a/lib/chef/resource/locale.rb b/lib/chef/resource/locale.rb index 90377ef93a..8d9280b20b 100644 --- a/lib/chef/resource/locale.rb +++ b/lib/chef/resource/locale.rb @@ -21,7 +21,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class Locale < Chef::Resource - unified_mode true provides :locale description "Use the **locale** resource to set the system's locale on Debian and Windows systems. Windows support was added in Chef Infra Client 16.0" diff --git a/lib/chef/resource/log.rb b/lib/chef/resource/log.rb index e9f8bc315a..077199ed63 100644 --- a/lib/chef/resource/log.rb +++ b/lib/chef/resource/log.rb @@ -29,7 +29,6 @@ class Chef # level :debug # end class Log < Chef::Resource - unified_mode true provides :log, target_mode: true diff --git a/lib/chef/resource/lwrp_base.rb b/lib/chef/resource/lwrp_base.rb index 4cfbc956bb..9db2ee69fa 100644 --- a/lib/chef/resource/lwrp_base.rb +++ b/lib/chef/resource/lwrp_base.rb @@ -54,10 +54,6 @@ class Chef resource_class.run_context = run_context resource_class.class_from_file(filename) - if !resource_class.unified_mode && !deprecated_class(resource_class) && cookbook_name.to_s != "chef_client_updater" - Chef.deprecated :unified_mode, "The #{resource_class.resource_name} resource in the #{cookbook_name} cookbook should declare `unified_mode true`", filename - end - # Make a useful string for the class (rather than <Class:312894723894>) resource_class.instance_eval do define_singleton_method(:to_s) do diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb index 9daea38aa4..6935c2fd90 100644 --- a/lib/chef/resource/macos_userdefaults.rb +++ b/lib/chef/resource/macos_userdefaults.rb @@ -23,7 +23,6 @@ autoload :Plist, "plist" class Chef class Resource class MacosUserDefaults < Chef::Resource - unified_mode true # align with apple's marketing department provides(:macos_userdefaults) { true } diff --git a/lib/chef/resource/macosx_service.rb b/lib/chef/resource/macosx_service.rb index 693b8a4b87..15a05799e4 100644 --- a/lib/chef/resource/macosx_service.rb +++ b/lib/chef/resource/macosx_service.rb @@ -21,7 +21,6 @@ require_relative "service" class Chef class Resource class MacosxService < Chef::Resource::Service - unified_mode true provides :macosx_service provides :service, os: "darwin" diff --git a/lib/chef/resource/macports_package.rb b/lib/chef/resource/macports_package.rb index 70fa84dec7..702ff0038d 100644 --- a/lib/chef/resource/macports_package.rb +++ b/lib/chef/resource/macports_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class MacportsPackage < Chef::Resource::Package - unified_mode true provides :macports_package description "Use the **macports_package** resource to manage packages for the macOS platform using the MacPorts package management system." diff --git a/lib/chef/resource/mdadm.rb b/lib/chef/resource/mdadm.rb index 86dbb0c42a..2e6490fcfa 100644 --- a/lib/chef/resource/mdadm.rb +++ b/lib/chef/resource/mdadm.rb @@ -22,7 +22,6 @@ require_relative "../resource" class Chef class Resource class Mdadm < Chef::Resource - unified_mode true provides :mdadm diff --git a/lib/chef/resource/mount.rb b/lib/chef/resource/mount.rb index 33cd2eec48..d2f72eb9c9 100644 --- a/lib/chef/resource/mount.rb +++ b/lib/chef/resource/mount.rb @@ -23,7 +23,6 @@ class Chef class Resource class Mount < Chef::Resource description "Use the **mount** resource to manage a mounted file system." - unified_mode true provides :mount diff --git a/lib/chef/resource/msu_package.rb b/lib/chef/resource/msu_package.rb index 23e92b2dd1..30956c9663 100644 --- a/lib/chef/resource/msu_package.rb +++ b/lib/chef/resource/msu_package.rb @@ -23,7 +23,6 @@ class Chef class Resource class MsuPackage < Chef::Resource::Package include Chef::Mixin::Uris - unified_mode true provides :msu_package diff --git a/lib/chef/resource/notify_group.rb b/lib/chef/resource/notify_group.rb index 9a1edf3eb8..e49a5043cb 100644 --- a/lib/chef/resource/notify_group.rb +++ b/lib/chef/resource/notify_group.rb @@ -21,8 +21,6 @@ class Chef class NotifyGroup < Chef::Resource provides :notify_group - unified_mode true - description "The notify_group resource does nothing, and always fires notifications which are set on it. Use it to DRY blocks of notifications that are common to multiple resources, and provide a single target for other resources to notify. Unlike most resources, its default action is :nothing." introduced "15.8" examples <<~DOC diff --git a/lib/chef/resource/ohai.rb b/lib/chef/resource/ohai.rb index 560a15353a..a0d6b1c99d 100644 --- a/lib/chef/resource/ohai.rb +++ b/lib/chef/resource/ohai.rb @@ -25,7 +25,6 @@ require "ohai" unless defined?(Ohai::System) class Chef class Resource class Ohai < Chef::Resource - unified_mode true provides :ohai diff --git a/lib/chef/resource/ohai_hint.rb b/lib/chef/resource/ohai_hint.rb index 63ddc595c5..5c855b8d6e 100644 --- a/lib/chef/resource/ohai_hint.rb +++ b/lib/chef/resource/ohai_hint.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class OhaiHint < Chef::Resource - unified_mode true provides(:ohai_hint) { true } diff --git a/lib/chef/resource/openbsd_package.rb b/lib/chef/resource/openbsd_package.rb index eecb188999..f60c4a0c40 100644 --- a/lib/chef/resource/openbsd_package.rb +++ b/lib/chef/resource/openbsd_package.rb @@ -25,7 +25,6 @@ require_relative "../provider/package/openbsd" class Chef class Resource class OpenbsdPackage < Chef::Resource::Package - unified_mode true provides :openbsd_package provides :package, os: "openbsd" diff --git a/lib/chef/resource/openssl_dhparam.rb b/lib/chef/resource/openssl_dhparam.rb index a34c79df17..a4f206ac25 100644 --- a/lib/chef/resource/openssl_dhparam.rb +++ b/lib/chef/resource/openssl_dhparam.rb @@ -23,8 +23,6 @@ class Chef require_relative "../mixin/openssl_helper" include Chef::Mixin::OpenSSLHelper - unified_mode true - provides(:openssl_dhparam) { true } description "Use the **openssl_dhparam** resource to generate `dhparam.pem` files. If a valid `dhparam.pem` file is found at the specified location, no new file will be created. If a file is found at the specified location but it is not a valid `dhparam.pem` file, it will be overwritten." diff --git a/lib/chef/resource/openssl_ec_private_key.rb b/lib/chef/resource/openssl_ec_private_key.rb index 5cd5b97c83..1d82084bc7 100644 --- a/lib/chef/resource/openssl_ec_private_key.rb +++ b/lib/chef/resource/openssl_ec_private_key.rb @@ -24,8 +24,6 @@ class Chef require_relative "../mixin/openssl_helper" include Chef::Mixin::OpenSSLHelper - unified_mode true - provides :openssl_ec_private_key description "Use the **openssl_ec_private_key** resource to generate an elliptic curve (EC) private key file. If a valid EC key file can be opened at the specified location, no new file will be created. If the EC key file cannot be opened, either because it does not exist or because the password to the EC key file does not match the password in the recipe, then it will be overwritten." diff --git a/lib/chef/resource/openssl_ec_public_key.rb b/lib/chef/resource/openssl_ec_public_key.rb index b66687f6e7..cbfeca6b01 100644 --- a/lib/chef/resource/openssl_ec_public_key.rb +++ b/lib/chef/resource/openssl_ec_public_key.rb @@ -24,8 +24,6 @@ class Chef require_relative "../mixin/openssl_helper" include Chef::Mixin::OpenSSLHelper - unified_mode true - provides :openssl_ec_public_key description "Use the **openssl_ec_public_key** resource to generate elliptic curve (EC) public key files from a given EC private key." diff --git a/lib/chef/resource/openssl_rsa_private_key.rb b/lib/chef/resource/openssl_rsa_private_key.rb index 5f0f50f5b1..97dffc2ba3 100644 --- a/lib/chef/resource/openssl_rsa_private_key.rb +++ b/lib/chef/resource/openssl_rsa_private_key.rb @@ -23,8 +23,6 @@ class Chef require_relative "../mixin/openssl_helper" include Chef::Mixin::OpenSSLHelper - unified_mode true - provides(:openssl_rsa_private_key) { true } provides(:openssl_rsa_key) { true } # legacy cookbook resource name diff --git a/lib/chef/resource/openssl_rsa_public_key.rb b/lib/chef/resource/openssl_rsa_public_key.rb index 54362b45a4..7a125f1856 100644 --- a/lib/chef/resource/openssl_rsa_public_key.rb +++ b/lib/chef/resource/openssl_rsa_public_key.rb @@ -23,8 +23,6 @@ class Chef require_relative "../mixin/openssl_helper" include Chef::Mixin::OpenSSLHelper - unified_mode true - provides(:openssl_rsa_public_key) { true } examples <<~DOC diff --git a/lib/chef/resource/openssl_x509_certificate.rb b/lib/chef/resource/openssl_x509_certificate.rb index 8d5ca2b9fa..5d03926e11 100644 --- a/lib/chef/resource/openssl_x509_certificate.rb +++ b/lib/chef/resource/openssl_x509_certificate.rb @@ -24,8 +24,6 @@ class Chef require_relative "../mixin/openssl_helper" include Chef::Mixin::OpenSSLHelper - unified_mode true - provides :openssl_x509_certificate provides(:openssl_x509) { true } # legacy cookbook name. diff --git a/lib/chef/resource/openssl_x509_crl.rb b/lib/chef/resource/openssl_x509_crl.rb index ecf9778f25..973b322b4c 100644 --- a/lib/chef/resource/openssl_x509_crl.rb +++ b/lib/chef/resource/openssl_x509_crl.rb @@ -24,8 +24,6 @@ class Chef require_relative "../mixin/openssl_helper" include Chef::Mixin::OpenSSLHelper - unified_mode true - provides :openssl_x509_crl description "Use the **openssl_x509_crl** resource to generate PEM-formatted x509 certificate revocation list (CRL) files." diff --git a/lib/chef/resource/openssl_x509_request.rb b/lib/chef/resource/openssl_x509_request.rb index 378c484028..3e46a8c5c7 100644 --- a/lib/chef/resource/openssl_x509_request.rb +++ b/lib/chef/resource/openssl_x509_request.rb @@ -24,8 +24,6 @@ class Chef require_relative "../mixin/openssl_helper" include Chef::Mixin::OpenSSLHelper - unified_mode true - provides :openssl_x509_request description "Use the **openssl_x509_request** resource to generate PEM-formatted x509 certificates requests. If no existing key is specified, the resource will automatically generate a passwordless key with the certificate." diff --git a/lib/chef/resource/osx_profile.rb b/lib/chef/resource/osx_profile.rb index ebeb8e34ca..f962e91636 100644 --- a/lib/chef/resource/osx_profile.rb +++ b/lib/chef/resource/osx_profile.rb @@ -25,7 +25,6 @@ autoload :Plist, "plist" class Chef class Resource class OsxProfile < Chef::Resource - unified_mode true provides :osx_profile provides :osx_config_profile diff --git a/lib/chef/resource/package.rb b/lib/chef/resource/package.rb index db3b12d289..be70d33b1f 100644 --- a/lib/chef/resource/package.rb +++ b/lib/chef/resource/package.rb @@ -22,7 +22,6 @@ require_relative "../resource" class Chef class Resource class Package < Chef::Resource - unified_mode true provides :package description "Use the **package** resource to manage packages. When the package is"\ diff --git a/lib/chef/resource/pacman_package.rb b/lib/chef/resource/pacman_package.rb index 14856de7dd..99c2fec1d5 100644 --- a/lib/chef/resource/pacman_package.rb +++ b/lib/chef/resource/pacman_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class PacmanPackage < Chef::Resource::Package - unified_mode true provides :pacman_package diff --git a/lib/chef/resource/paludis_package.rb b/lib/chef/resource/paludis_package.rb index 385922c940..ac19ef2603 100644 --- a/lib/chef/resource/paludis_package.rb +++ b/lib/chef/resource/paludis_package.rb @@ -22,7 +22,6 @@ require_relative "../provider/package/paludis" class Chef class Resource class PaludisPackage < Chef::Resource::Package - unified_mode true provides :paludis_package diff --git a/lib/chef/resource/perl.rb b/lib/chef/resource/perl.rb index ac98c69a8c..a20a5f8aa4 100644 --- a/lib/chef/resource/perl.rb +++ b/lib/chef/resource/perl.rb @@ -21,7 +21,6 @@ require_relative "script" class Chef class Resource class Perl < Chef::Resource::Script - unified_mode true provides :perl diff --git a/lib/chef/resource/plist.rb b/lib/chef/resource/plist.rb index 4a43605607..6783ae5f51 100644 --- a/lib/chef/resource/plist.rb +++ b/lib/chef/resource/plist.rb @@ -22,7 +22,6 @@ class Chef class Resource class PlistResource < Chef::Resource # we name this PlistResource to avoid confusion with Plist from the plist gem - unified_mode true provides :plist diff --git a/lib/chef/resource/portage_package.rb b/lib/chef/resource/portage_package.rb index 05f54c9d21..b659cea948 100644 --- a/lib/chef/resource/portage_package.rb +++ b/lib/chef/resource/portage_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class PortagePackage < Chef::Resource::Package - unified_mode true provides :portage_package diff --git a/lib/chef/resource/powershell_package.rb b/lib/chef/resource/powershell_package.rb index 7d013eac4c..59ee663f76 100644 --- a/lib/chef/resource/powershell_package.rb +++ b/lib/chef/resource/powershell_package.rb @@ -20,7 +20,6 @@ require_relative "package" class Chef class Resource class PowershellPackage < Chef::Resource::Package - unified_mode true provides :powershell_package diff --git a/lib/chef/resource/powershell_package_source.rb b/lib/chef/resource/powershell_package_source.rb index aa57275150..cf8ddf74cb 100644 --- a/lib/chef/resource/powershell_package_source.rb +++ b/lib/chef/resource/powershell_package_source.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class PowershellPackageSource < Chef::Resource - unified_mode true provides :powershell_package_source diff --git a/lib/chef/resource/powershell_script.rb b/lib/chef/resource/powershell_script.rb index b0be81feaa..f771bb7bff 100644 --- a/lib/chef/resource/powershell_script.rb +++ b/lib/chef/resource/powershell_script.rb @@ -20,7 +20,6 @@ require_relative "windows_script" class Chef class Resource class PowershellScript < Chef::Resource::WindowsScript - unified_mode true set_guard_inherited_attributes(:interpreter) diff --git a/lib/chef/resource/python.rb b/lib/chef/resource/python.rb index 0b36ca0bbd..79392e4cf6 100644 --- a/lib/chef/resource/python.rb +++ b/lib/chef/resource/python.rb @@ -20,7 +20,6 @@ require_relative "script" class Chef class Resource class Python < Chef::Resource::Script - unified_mode true provides :python diff --git a/lib/chef/resource/reboot.rb b/lib/chef/resource/reboot.rb index 718fb8dd51..1c1e33c579 100644 --- a/lib/chef/resource/reboot.rb +++ b/lib/chef/resource/reboot.rb @@ -22,7 +22,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class Reboot < Chef::Resource - unified_mode true provides :reboot diff --git a/lib/chef/resource/registry_key.rb b/lib/chef/resource/registry_key.rb index a643ad3344..d865864efb 100644 --- a/lib/chef/resource/registry_key.rb +++ b/lib/chef/resource/registry_key.rb @@ -23,7 +23,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class RegistryKey < Chef::Resource - unified_mode true provides(:registry_key) { true } diff --git a/lib/chef/resource/remote_directory.rb b/lib/chef/resource/remote_directory.rb index e7640e686e..b63435df08 100644 --- a/lib/chef/resource/remote_directory.rb +++ b/lib/chef/resource/remote_directory.rb @@ -25,7 +25,6 @@ class Chef class Resource class RemoteDirectory < Chef::Resource::Directory include Chef::Mixin::Securable - unified_mode true provides :remote_directory diff --git a/lib/chef/resource/remote_file.rb b/lib/chef/resource/remote_file.rb index d91cb86a30..e763e745b5 100644 --- a/lib/chef/resource/remote_file.rb +++ b/lib/chef/resource/remote_file.rb @@ -28,7 +28,6 @@ class Chef class Resource class RemoteFile < Chef::Resource::File include Chef::Mixin::Securable - unified_mode true provides :remote_file diff --git a/lib/chef/resource/rhsm_errata.rb b/lib/chef/resource/rhsm_errata.rb index d3e4a8b8b2..a029a0823b 100644 --- a/lib/chef/resource/rhsm_errata.rb +++ b/lib/chef/resource/rhsm_errata.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class RhsmErrata < Chef::Resource - unified_mode true provides(:rhsm_errata) { true } description "Use the **rhsm_errata** resource to install packages associated with a given Red Hat Subscription Manager Errata ID. This is helpful if packages to mitigate a single vulnerability must be installed on your hosts." diff --git a/lib/chef/resource/rhsm_errata_level.rb b/lib/chef/resource/rhsm_errata_level.rb index 52d3458d91..c8c9618bbe 100644 --- a/lib/chef/resource/rhsm_errata_level.rb +++ b/lib/chef/resource/rhsm_errata_level.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class RhsmErrataLevel < Chef::Resource - unified_mode true provides(:rhsm_errata_level) { true } description "Use the **rhsm_errata_level** resource to install all packages of a specified errata level from the Red Hat Subscription Manager. For example, you can ensure that all packages associated with errata marked at a 'Critical' security level are installed." diff --git a/lib/chef/resource/rhsm_register.rb b/lib/chef/resource/rhsm_register.rb index 8a7d748920..53e1bc8daf 100644 --- a/lib/chef/resource/rhsm_register.rb +++ b/lib/chef/resource/rhsm_register.rb @@ -22,7 +22,6 @@ require "shellwords" unless defined?(Shellwords) class Chef class Resource class RhsmRegister < Chef::Resource - unified_mode true provides(:rhsm_register) { true } description "Use the **rhsm_register** resource to register a node with the Red Hat Subscription Manager or a local Red Hat Satellite server." diff --git a/lib/chef/resource/rhsm_repo.rb b/lib/chef/resource/rhsm_repo.rb index 03567e004b..2a72b0a067 100644 --- a/lib/chef/resource/rhsm_repo.rb +++ b/lib/chef/resource/rhsm_repo.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class RhsmRepo < Chef::Resource - unified_mode true provides(:rhsm_repo) { true } diff --git a/lib/chef/resource/rhsm_subscription.rb b/lib/chef/resource/rhsm_subscription.rb index d4eb49250b..e6272247f7 100644 --- a/lib/chef/resource/rhsm_subscription.rb +++ b/lib/chef/resource/rhsm_subscription.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class RhsmSubscription < Chef::Resource - unified_mode true provides(:rhsm_subscription) { true } diff --git a/lib/chef/resource/route.rb b/lib/chef/resource/route.rb index 82f961679b..3663850538 100644 --- a/lib/chef/resource/route.rb +++ b/lib/chef/resource/route.rb @@ -22,7 +22,6 @@ require_relative "../resource" class Chef class Resource class Route < Chef::Resource - unified_mode true provides :route diff --git a/lib/chef/resource/rpm_package.rb b/lib/chef/resource/rpm_package.rb index 3f65e32cef..31cd279ba8 100644 --- a/lib/chef/resource/rpm_package.rb +++ b/lib/chef/resource/rpm_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class RpmPackage < Chef::Resource::Package - unified_mode true provides :rpm_package diff --git a/lib/chef/resource/ruby.rb b/lib/chef/resource/ruby.rb index 2c0e65e9da..d55758e2f4 100644 --- a/lib/chef/resource/ruby.rb +++ b/lib/chef/resource/ruby.rb @@ -21,7 +21,6 @@ require_relative "script" class Chef class Resource class Ruby < Chef::Resource::Script - unified_mode true provides :ruby diff --git a/lib/chef/resource/ruby_block.rb b/lib/chef/resource/ruby_block.rb index a7f4666d16..f8a4d46609 100644 --- a/lib/chef/resource/ruby_block.rb +++ b/lib/chef/resource/ruby_block.rb @@ -24,7 +24,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class RubyBlock < Chef::Resource - unified_mode true provides :ruby_block, target_mode: true diff --git a/lib/chef/resource/scm/_scm.rb b/lib/chef/resource/scm/_scm.rb index 573d8b9b94..f51f53d2e2 100644 --- a/lib/chef/resource/scm/_scm.rb +++ b/lib/chef/resource/scm/_scm.rb @@ -16,8 +16,6 @@ # limitations under the License. # -unified_mode true - default_action :sync allowed_actions :checkout, :export, :sync, :diff, :log diff --git a/lib/chef/resource/scm/git.rb b/lib/chef/resource/scm/git.rb index af49704ee6..20cbf8a098 100644 --- a/lib/chef/resource/scm/git.rb +++ b/lib/chef/resource/scm/git.rb @@ -23,8 +23,6 @@ class Chef class Git < Chef::Resource use "scm" - unified_mode true - provides :git description "Use the **git** resource to manage source control resources that exist in a git repository. git version 1.6.5 (or higher) is required to use all of the functionality in the git resource." diff --git a/lib/chef/resource/scm/subversion.rb b/lib/chef/resource/scm/subversion.rb index 7216aa53dd..6144ca3a54 100644 --- a/lib/chef/resource/scm/subversion.rb +++ b/lib/chef/resource/scm/subversion.rb @@ -24,8 +24,6 @@ class Chef class Subversion < Chef::Resource use "scm" - unified_mode true - provides :subversion description "Use the **subversion** resource to manage source control resources that exist in a Subversion repository. Warning: The subversion resource has known bugs and may not work as expected. For more information see Chef GitHub issues, particularly [#4050](https://github.com/chef/chef/issues/4050) and [#4257](https://github.com/chef/chef/issues/4257)." diff --git a/lib/chef/resource/script.rb b/lib/chef/resource/script.rb index 54468a534d..801e000c9e 100644 --- a/lib/chef/resource/script.rb +++ b/lib/chef/resource/script.rb @@ -22,7 +22,6 @@ require_relative "execute" class Chef class Resource class Script < Chef::Resource::Execute - unified_mode true provides :script diff --git a/lib/chef/resource/service.rb b/lib/chef/resource/service.rb index 63674a3c93..d834d99ae0 100644 --- a/lib/chef/resource/service.rb +++ b/lib/chef/resource/service.rb @@ -27,7 +27,6 @@ class Chef class Service < Chef::Resource include Chef::Platform::ServiceHelpers extend Chef::Platform::ServiceHelpers - unified_mode true provides :service, target_mode: true diff --git a/lib/chef/resource/smartos_package.rb b/lib/chef/resource/smartos_package.rb index 08b2f0d82f..2dabccc4b4 100644 --- a/lib/chef/resource/smartos_package.rb +++ b/lib/chef/resource/smartos_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class SmartosPackage < Chef::Resource::Package - unified_mode true provides :smartos_package provides :package, platform_family: "smartos" diff --git a/lib/chef/resource/snap_package.rb b/lib/chef/resource/snap_package.rb index c211b03555..4979e996e0 100644 --- a/lib/chef/resource/snap_package.rb +++ b/lib/chef/resource/snap_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class SnapPackage < Chef::Resource::Package - unified_mode true provides :snap_package diff --git a/lib/chef/resource/solaris_package.rb b/lib/chef/resource/solaris_package.rb index 381c62a45b..c3d023db35 100644 --- a/lib/chef/resource/solaris_package.rb +++ b/lib/chef/resource/solaris_package.rb @@ -22,7 +22,6 @@ require_relative "package" class Chef class Resource class SolarisPackage < Chef::Resource::Package - unified_mode true provides :solaris_package diff --git a/lib/chef/resource/ssh_known_hosts_entry.rb b/lib/chef/resource/ssh_known_hosts_entry.rb index a8d45f4c12..c53f9e725f 100644 --- a/lib/chef/resource/ssh_known_hosts_entry.rb +++ b/lib/chef/resource/ssh_known_hosts_entry.rb @@ -23,7 +23,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class SshKnownHostsEntry < Chef::Resource - unified_mode true provides :ssh_known_hosts_entry diff --git a/lib/chef/resource/sudo.rb b/lib/chef/resource/sudo.rb index d028af80bf..f77d6c2466 100644 --- a/lib/chef/resource/sudo.rb +++ b/lib/chef/resource/sudo.rb @@ -24,7 +24,6 @@ require_relative "../resource" class Chef class Resource class Sudo < Chef::Resource - unified_mode true provides(:sudo) { true } diff --git a/lib/chef/resource/swap_file.rb b/lib/chef/resource/swap_file.rb index bd2c7bf632..b48828f75a 100644 --- a/lib/chef/resource/swap_file.rb +++ b/lib/chef/resource/swap_file.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class SwapFile < Chef::Resource - unified_mode true provides(:swap_file) { true } diff --git a/lib/chef/resource/sysctl.rb b/lib/chef/resource/sysctl.rb index 8604590d46..97f919fbc9 100644 --- a/lib/chef/resource/sysctl.rb +++ b/lib/chef/resource/sysctl.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class Sysctl < Chef::Resource - unified_mode true provides(:sysctl) { true } provides(:sysctl_param) { true } diff --git a/lib/chef/resource/systemd_unit.rb b/lib/chef/resource/systemd_unit.rb index 61294d833d..29fa56343e 100644 --- a/lib/chef/resource/systemd_unit.rb +++ b/lib/chef/resource/systemd_unit.rb @@ -23,7 +23,6 @@ require "iniparse" class Chef class Resource class SystemdUnit < Chef::Resource - unified_mode true provides(:systemd_unit) { true } diff --git a/lib/chef/resource/template.rb b/lib/chef/resource/template.rb index 60b431ab8e..c7ef7cf777 100644 --- a/lib/chef/resource/template.rb +++ b/lib/chef/resource/template.rb @@ -34,7 +34,6 @@ class Chef # chef-client. This resource includes actions and properties from the file resource. Template files managed by the # template resource follow the same file specificity rules as the remote_file and file resources. class Template < Chef::Resource::File - unified_mode true provides :template diff --git a/lib/chef/resource/timezone.rb b/lib/chef/resource/timezone.rb index f879c9577a..777cfd883a 100644 --- a/lib/chef/resource/timezone.rb +++ b/lib/chef/resource/timezone.rb @@ -22,7 +22,6 @@ require_relative "../resource" class Chef class Resource class Timezone < Chef::Resource - unified_mode true provides :timezone diff --git a/lib/chef/resource/user.rb b/lib/chef/resource/user.rb index 408932175d..992935a6b6 100644 --- a/lib/chef/resource/user.rb +++ b/lib/chef/resource/user.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class User < Chef::Resource - unified_mode true description "Use the **user** resource to add users, update existing users, remove users, and to lock/unlock user passwords." diff --git a/lib/chef/resource/user/aix_user.rb b/lib/chef/resource/user/aix_user.rb index c0e4c01e20..2a0e395284 100644 --- a/lib/chef/resource/user/aix_user.rb +++ b/lib/chef/resource/user/aix_user.rb @@ -21,7 +21,6 @@ class Chef class Resource class User class AixUser < Chef::Resource::User - unified_mode true provides :aix_user provides :user, os: "aix" diff --git a/lib/chef/resource/user/linux_user.rb b/lib/chef/resource/user/linux_user.rb index 24406e5079..e98902c8d5 100644 --- a/lib/chef/resource/user/linux_user.rb +++ b/lib/chef/resource/user/linux_user.rb @@ -21,7 +21,6 @@ class Chef class Resource class User class LinuxUser < Chef::Resource::User - unified_mode true provides :linux_user provides :user, os: "linux" diff --git a/lib/chef/resource/user/mac_user.rb b/lib/chef/resource/user/mac_user.rb index 93eef5e893..90be91c76f 100644 --- a/lib/chef/resource/user/mac_user.rb +++ b/lib/chef/resource/user/mac_user.rb @@ -58,7 +58,6 @@ class Chef # the 'password' property corresponds to a plaintext password and will # attempt to use it in place of secure_token_password if it not set. class MacUser < Chef::Resource::User - unified_mode true provides :mac_user provides :user, platform: "mac_os_x" diff --git a/lib/chef/resource/user/pw_user.rb b/lib/chef/resource/user/pw_user.rb index 2f97500970..453cee3e1a 100644 --- a/lib/chef/resource/user/pw_user.rb +++ b/lib/chef/resource/user/pw_user.rb @@ -21,7 +21,6 @@ class Chef class Resource class User class PwUser < Chef::Resource::User - unified_mode true provides :pw_user provides :user, os: "freebsd" diff --git a/lib/chef/resource/user/solaris_user.rb b/lib/chef/resource/user/solaris_user.rb index ab76cb7ae9..4fd7f050b3 100644 --- a/lib/chef/resource/user/solaris_user.rb +++ b/lib/chef/resource/user/solaris_user.rb @@ -21,7 +21,6 @@ class Chef class Resource class User class SolarisUser < Chef::Resource::User - unified_mode true provides :solaris_user provides :user, os: %w{omnios solaris2} diff --git a/lib/chef/resource/user/windows_user.rb b/lib/chef/resource/user/windows_user.rb index d738ba1636..88a7e44cf2 100644 --- a/lib/chef/resource/user/windows_user.rb +++ b/lib/chef/resource/user/windows_user.rb @@ -21,7 +21,6 @@ class Chef class Resource class User class WindowsUser < Chef::Resource::User - unified_mode true provides :windows_user provides :user, os: "windows" diff --git a/lib/chef/resource/user_ulimit.rb b/lib/chef/resource/user_ulimit.rb index 594b585dbf..e84f12dcad 100644 --- a/lib/chef/resource/user_ulimit.rb +++ b/lib/chef/resource/user_ulimit.rb @@ -22,7 +22,6 @@ require_relative "../resource" class Chef class Resource class UserUlimit < Chef::Resource - unified_mode true provides :user_ulimit diff --git a/lib/chef/resource/whyrun_safe_ruby_block.rb b/lib/chef/resource/whyrun_safe_ruby_block.rb index 6dde0539a7..00ff88eb49 100644 --- a/lib/chef/resource/whyrun_safe_ruby_block.rb +++ b/lib/chef/resource/whyrun_safe_ruby_block.rb @@ -20,7 +20,6 @@ class Chef class Resource class WhyrunSafeRubyBlock < Chef::Resource::RubyBlock provides :whyrun_safe_ruby_block - unified_mode true end end end diff --git a/lib/chef/resource/windows_ad_join.rb b/lib/chef/resource/windows_ad_join.rb index e285e1cf1e..afe819301c 100644 --- a/lib/chef/resource/windows_ad_join.rb +++ b/lib/chef/resource/windows_ad_join.rb @@ -23,8 +23,6 @@ class Chef class WindowsAdJoin < Chef::Resource provides :windows_ad_join - unified_mode true - description "Use the **windows_ad_join** resource to join a Windows Active Directory domain." introduced "14.0" examples <<~DOC diff --git a/lib/chef/resource/windows_audit_policy.rb b/lib/chef/resource/windows_audit_policy.rb index b1fcbe2e44..e8586ba8fa 100644 --- a/lib/chef/resource/windows_audit_policy.rb +++ b/lib/chef/resource/windows_audit_policy.rb @@ -83,8 +83,6 @@ class Chef "User Account Management", ].freeze - unified_mode true - provides :windows_audit_policy description "Use the **windows_audit_policy** resource to configure system level and per-user Windows advanced audit policy settings." diff --git a/lib/chef/resource/windows_auto_run.rb b/lib/chef/resource/windows_auto_run.rb index 394960b88e..4393336a42 100644 --- a/lib/chef/resource/windows_auto_run.rb +++ b/lib/chef/resource/windows_auto_run.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class WindowsAutorun < Chef::Resource - unified_mode true provides(:windows_auto_run) { true } diff --git a/lib/chef/resource/windows_certificate.rb b/lib/chef/resource/windows_certificate.rb index 528b0c53f6..3fcaec0948 100644 --- a/lib/chef/resource/windows_certificate.rb +++ b/lib/chef/resource/windows_certificate.rb @@ -29,7 +29,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class WindowsCertificate < Chef::Resource - unified_mode true provides :windows_certificate diff --git a/lib/chef/resource/windows_defender.rb b/lib/chef/resource/windows_defender.rb index bdb599d82f..5de4f6800b 100644 --- a/lib/chef/resource/windows_defender.rb +++ b/lib/chef/resource/windows_defender.rb @@ -19,7 +19,6 @@ require_relative "../resource" class Chef class Resource class WindowsDefender < Chef::Resource - unified_mode true provides :windows_defender description "Use the **windows_defender** resource to enable or disable the Microsoft Windows Defender service." diff --git a/lib/chef/resource/windows_defender_exclusion.rb b/lib/chef/resource/windows_defender_exclusion.rb index 6df7ce38c8..65f6a9e3bf 100644 --- a/lib/chef/resource/windows_defender_exclusion.rb +++ b/lib/chef/resource/windows_defender_exclusion.rb @@ -45,7 +45,6 @@ class Chef end ``` DOC - unified_mode true property :paths, [String, Array], default: [], coerce: proc { |x| to_consistent_path_array(x) }, diff --git a/lib/chef/resource/windows_dfs_folder.rb b/lib/chef/resource/windows_dfs_folder.rb index b9ef4525f9..87a28661e5 100644 --- a/lib/chef/resource/windows_dfs_folder.rb +++ b/lib/chef/resource/windows_dfs_folder.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class WindowsDfsFolder < Chef::Resource - unified_mode true provides :windows_dfs_folder diff --git a/lib/chef/resource/windows_dfs_namespace.rb b/lib/chef/resource/windows_dfs_namespace.rb index 3d1a08f3a3..a0d8c763e9 100644 --- a/lib/chef/resource/windows_dfs_namespace.rb +++ b/lib/chef/resource/windows_dfs_namespace.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class WindowsDfsNamespace < Chef::Resource - unified_mode true provides :windows_dfs_namespace diff --git a/lib/chef/resource/windows_dfs_server.rb b/lib/chef/resource/windows_dfs_server.rb index e93185c245..c9f39e5759 100644 --- a/lib/chef/resource/windows_dfs_server.rb +++ b/lib/chef/resource/windows_dfs_server.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class WindowsDfsServer < Chef::Resource - unified_mode true provides :windows_dfs_server diff --git a/lib/chef/resource/windows_dns_record.rb b/lib/chef/resource/windows_dns_record.rb index 8b908f09e6..9b3111a061 100644 --- a/lib/chef/resource/windows_dns_record.rb +++ b/lib/chef/resource/windows_dns_record.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class WindowsDnsRecord < Chef::Resource - unified_mode true provides :windows_dns_record diff --git a/lib/chef/resource/windows_dns_zone.rb b/lib/chef/resource/windows_dns_zone.rb index eb7e42c3ce..bd4cfbab2f 100644 --- a/lib/chef/resource/windows_dns_zone.rb +++ b/lib/chef/resource/windows_dns_zone.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class WindowsDnsZone < Chef::Resource - unified_mode true provides :windows_dns_zone diff --git a/lib/chef/resource/windows_env.rb b/lib/chef/resource/windows_env.rb index c8385ecc1b..6ab40e8883 100644 --- a/lib/chef/resource/windows_env.rb +++ b/lib/chef/resource/windows_env.rb @@ -24,7 +24,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class WindowsEnv < Chef::Resource - unified_mode true provides :windows_env provides :env # backwards compat with the pre-Chef 14 resource name diff --git a/lib/chef/resource/windows_feature.rb b/lib/chef/resource/windows_feature.rb index ae71b299fe..7fa26033f9 100644 --- a/lib/chef/resource/windows_feature.rb +++ b/lib/chef/resource/windows_feature.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class WindowsFeature < Chef::Resource - unified_mode true provides(:windows_feature) { true } diff --git a/lib/chef/resource/windows_feature_dism.rb b/lib/chef/resource/windows_feature_dism.rb index a2d91eaede..bee34e855f 100644 --- a/lib/chef/resource/windows_feature_dism.rb +++ b/lib/chef/resource/windows_feature_dism.rb @@ -22,7 +22,6 @@ require_relative "../platform/query_helpers" class Chef class Resource class WindowsFeatureDism < Chef::Resource - unified_mode true provides(:windows_feature_dism) { true } diff --git a/lib/chef/resource/windows_feature_powershell.rb b/lib/chef/resource/windows_feature_powershell.rb index 00b36f33fd..86f5f0262b 100644 --- a/lib/chef/resource/windows_feature_powershell.rb +++ b/lib/chef/resource/windows_feature_powershell.rb @@ -23,7 +23,6 @@ require_relative "../platform/query_helpers" class Chef class Resource class WindowsFeaturePowershell < Chef::Resource - unified_mode true provides(:windows_feature_powershell) { true } diff --git a/lib/chef/resource/windows_firewall_profile.rb b/lib/chef/resource/windows_firewall_profile.rb index 573f4b2cfa..a1d7988f49 100644 --- a/lib/chef/resource/windows_firewall_profile.rb +++ b/lib/chef/resource/windows_firewall_profile.rb @@ -58,8 +58,6 @@ class Chef ``` DOC - unified_mode true - property :profile, String, name_property: true, equal_to: %w{ Domain Public Private }, diff --git a/lib/chef/resource/windows_firewall_rule.rb b/lib/chef/resource/windows_firewall_rule.rb index e397a94670..68bbd46189 100644 --- a/lib/chef/resource/windows_firewall_rule.rb +++ b/lib/chef/resource/windows_firewall_rule.rb @@ -22,7 +22,6 @@ class Chef class Resource class WindowsFirewallRule < Chef::Resource - unified_mode true provides :windows_firewall_rule diff --git a/lib/chef/resource/windows_font.rb b/lib/chef/resource/windows_font.rb index 2a8aaa3feb..952f689fba 100644 --- a/lib/chef/resource/windows_font.rb +++ b/lib/chef/resource/windows_font.rb @@ -21,7 +21,6 @@ class Chef class Resource class WindowsFont < Chef::Resource require_relative "../util/path_helper" - unified_mode true provides(:windows_font) { true } diff --git a/lib/chef/resource/windows_package.rb b/lib/chef/resource/windows_package.rb index 0072d70656..2e10dde43d 100644 --- a/lib/chef/resource/windows_package.rb +++ b/lib/chef/resource/windows_package.rb @@ -26,7 +26,6 @@ class Chef class Resource class WindowsPackage < Chef::Resource::Package include Chef::Mixin::Uris - unified_mode true provides(:windows_package) { true } provides :package, os: "windows" diff --git a/lib/chef/resource/windows_pagefile.rb b/lib/chef/resource/windows_pagefile.rb index 6fb63f2f3b..03649e28aa 100644 --- a/lib/chef/resource/windows_pagefile.rb +++ b/lib/chef/resource/windows_pagefile.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class WindowsPagefile < Chef::Resource - unified_mode true provides(:windows_pagefile) { true } diff --git a/lib/chef/resource/windows_path.rb b/lib/chef/resource/windows_path.rb index 625ac01fd0..4e09ac9bc5 100644 --- a/lib/chef/resource/windows_path.rb +++ b/lib/chef/resource/windows_path.rb @@ -23,7 +23,6 @@ require_relative "../resource" class Chef class Resource class WindowsPath < Chef::Resource - unified_mode true provides(:windows_path) { true } diff --git a/lib/chef/resource/windows_printer.rb b/lib/chef/resource/windows_printer.rb index be9155e83c..bdfaa9b531 100644 --- a/lib/chef/resource/windows_printer.rb +++ b/lib/chef/resource/windows_printer.rb @@ -27,7 +27,6 @@ class Chef # 2. Fail with a warning if the port can't be found and create_port is false # 3. Fail with helpful messaging if the printer driver can't be installed class WindowsPrinter < Chef::Resource - unified_mode true autoload :Resolv, "resolv" diff --git a/lib/chef/resource/windows_printer_port.rb b/lib/chef/resource/windows_printer_port.rb index 636ae9dd54..239ff1f931 100644 --- a/lib/chef/resource/windows_printer_port.rb +++ b/lib/chef/resource/windows_printer_port.rb @@ -23,7 +23,6 @@ require_relative "../resource" class Chef class Resource class WindowsPrinterPort < Chef::Resource - unified_mode true autoload :Resolv, "resolv" diff --git a/lib/chef/resource/windows_script.rb b/lib/chef/resource/windows_script.rb index 8c958c5cba..96be7f15ef 100644 --- a/lib/chef/resource/windows_script.rb +++ b/lib/chef/resource/windows_script.rb @@ -24,8 +24,6 @@ class Chef class WindowsScript < Chef::Resource::Script include Chef::Mixin::WindowsArchitectureHelper - unified_mode true - # This is an abstract resource meant to be subclasses; thus no 'provides' set_guard_inherited_attributes(:architecture) diff --git a/lib/chef/resource/windows_security_policy.rb b/lib/chef/resource/windows_security_policy.rb index 5c683492a3..ff3597eeee 100644 --- a/lib/chef/resource/windows_security_policy.rb +++ b/lib/chef/resource/windows_security_policy.rb @@ -22,7 +22,6 @@ require "tempfile" unless defined?(Tempfile) class Chef class Resource class WindowsSecurityPolicy < Chef::Resource - unified_mode true provides :windows_security_policy diff --git a/lib/chef/resource/windows_service.rb b/lib/chef/resource/windows_service.rb index 779c0e22ad..6b0bf821eb 100644 --- a/lib/chef/resource/windows_service.rb +++ b/lib/chef/resource/windows_service.rb @@ -23,7 +23,6 @@ class Chef class Resource class WindowsService < Chef::Resource::Service include Chef::Win32ServiceConstants - unified_mode true ALLOWED_START_TYPES = { automatic: SERVICE_AUTO_START, diff --git a/lib/chef/resource/windows_share.rb b/lib/chef/resource/windows_share.rb index 32b6b9f4a0..5a635e54f9 100644 --- a/lib/chef/resource/windows_share.rb +++ b/lib/chef/resource/windows_share.rb @@ -25,7 +25,6 @@ require_relative "../util/path_helper" class Chef class Resource class WindowsShare < Chef::Resource - unified_mode true provides :windows_share diff --git a/lib/chef/resource/windows_shortcut.rb b/lib/chef/resource/windows_shortcut.rb index d432f41bca..3bf52f61d5 100644 --- a/lib/chef/resource/windows_shortcut.rb +++ b/lib/chef/resource/windows_shortcut.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class WindowsShortcut < Chef::Resource - unified_mode true provides(:windows_shortcut) { true } diff --git a/lib/chef/resource/windows_task.rb b/lib/chef/resource/windows_task.rb index 224e59204b..e4581c24fc 100644 --- a/lib/chef/resource/windows_task.rb +++ b/lib/chef/resource/windows_task.rb @@ -27,7 +27,6 @@ require "win32/taskscheduler" if ChefUtils.windows_ruby? class Chef class Resource class WindowsTask < Chef::Resource - unified_mode true provides(:windows_task) { true } diff --git a/lib/chef/resource/windows_uac.rb b/lib/chef/resource/windows_uac.rb index 4f01b542a5..4182102dbc 100644 --- a/lib/chef/resource/windows_uac.rb +++ b/lib/chef/resource/windows_uac.rb @@ -20,7 +20,6 @@ require_relative "../resource" class Chef class Resource class WindowsUac < Chef::Resource - unified_mode true provides :windows_uac diff --git a/lib/chef/resource/windows_update_settings.rb b/lib/chef/resource/windows_update_settings.rb index 4d9d76463b..2a12077e95 100644 --- a/lib/chef/resource/windows_update_settings.rb +++ b/lib/chef/resource/windows_update_settings.rb @@ -23,7 +23,6 @@ require_relative "../resource" class Chef class Resource class WindowsUpdateSettings < Chef::Resource - unified_mode true provides :windows_update_settings diff --git a/lib/chef/resource/windows_user_privilege.rb b/lib/chef/resource/windows_user_privilege.rb index 2d4a395a7c..e4679f50b9 100644 --- a/lib/chef/resource/windows_user_privilege.rb +++ b/lib/chef/resource/windows_user_privilege.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class WindowsUserPrivilege < Chef::Resource - unified_mode true provides :windows_user_privilege description "The windows_user_privilege resource allows to add and set principal (User/Group) to the specified privilege.\n Ref: https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/user-rights-assignment" diff --git a/lib/chef/resource/windows_workgroup.rb b/lib/chef/resource/windows_workgroup.rb index acb3bee542..1d0e0d1947 100644 --- a/lib/chef/resource/windows_workgroup.rb +++ b/lib/chef/resource/windows_workgroup.rb @@ -21,7 +21,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class WindowsWorkgroup < Chef::Resource - unified_mode true provides :windows_workgroup diff --git a/lib/chef/resource/yum_package.rb b/lib/chef/resource/yum_package.rb index c8446bf9b0..83b2508ac5 100644 --- a/lib/chef/resource/yum_package.rb +++ b/lib/chef/resource/yum_package.rb @@ -22,7 +22,6 @@ require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource class YumPackage < Chef::Resource::Package - unified_mode true provides :yum_package provides :package, platform_family: "fedora_derived" diff --git a/lib/chef/resource/yum_repository.rb b/lib/chef/resource/yum_repository.rb index b5ad2688eb..fcddd8a50f 100644 --- a/lib/chef/resource/yum_repository.rb +++ b/lib/chef/resource/yum_repository.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class YumRepository < Chef::Resource - unified_mode true provides(:yum_repository) { true } diff --git a/lib/chef/resource/zypper_package.rb b/lib/chef/resource/zypper_package.rb index 0c4fa47a88..a32c79c607 100644 --- a/lib/chef/resource/zypper_package.rb +++ b/lib/chef/resource/zypper_package.rb @@ -21,7 +21,6 @@ require_relative "package" class Chef class Resource class ZypperPackage < Chef::Resource::Package - unified_mode true provides :zypper_package provides :package, platform_family: "suse" diff --git a/lib/chef/resource/zypper_repository.rb b/lib/chef/resource/zypper_repository.rb index 228329d2ea..b2c5618f2d 100644 --- a/lib/chef/resource/zypper_repository.rb +++ b/lib/chef/resource/zypper_repository.rb @@ -21,7 +21,6 @@ require_relative "../resource" class Chef class Resource class ZypperRepository < Chef::Resource - unified_mode true provides(:zypper_repository) { true } provides(:zypper_repo) { true } # legacy cookbook compatibility |