Enabled unified mode: fix deprecation warning
Enabling unified mode for all versions than can support it (Chef 14.14+, Chef 15.3+, Chef 16+).
This mode will be the default on Chef 18, and it's defined as a current deprecation
See:
MODIFY
CHANGELOG.md
CHANGELOG.md
Changes
=======
+# Unreleased
+
+* [FEATURE] Enabled unified mode on compatible platforms since it will be the default on Chef 18. See [CHEF-33](https://docs.chef.io/deprecations_unified_mode/) deprecation.
+* [FEATURE] Added support for Chef 18+.
+
# 4.11.1 / 2021-08-24
* [BUGFIX] Support cookbook renaming [#810][] [@lchayoun][]

MODIFY
kitchen.yml
kitchen.yml
@@ -21,6 +21,7 @@ platforms:
14
16.5
17
+ 18
)
test_platforms.product(chef_versions).each do |platform_version, chef_version|

MODIFY
resources/integration.rb
resources/integration.rb
# The datadog_resource must be used on a system where the datadog-agent has
# already been setup.
+# enable unified mode on specific Chef versions.
+# See CHEF-33 Deprecation warning:
+# https://docs.chef.io/deprecations_unified_mode/
+
+unified_mode true if respond_to?(:unified_mode)
+
default_action :install
property :property_name, String, name_property: true

MODIFY
resources/monitor.rb
resources/monitor.rb
# Configure a service via its yaml file
+# enable unified mode on specific Chef versions.
+# See CHEF-33 Deprecation warning:
+# https://docs.chef.io/deprecations_unified_mode/
+
+unified_mode true if respond_to?(:unified_mode)
+
require 'yaml' # Our erb templates need this
default_action :add

Enabled unified mode: fix CHEF-33 deprecation warning (#822)

Enabling unified mode for all versions than can support it (Chef 14.14+, Chef 15.3+, Chef 16+).
This mode will be the default on Chef 18, and it's defined as a current deprecation (CHEF-33).

See: https://docs.chef.io/deprecations_unified_mode/