Fix minimum versions of some dependencies + document some Chef 12.x deps needs.
MODIFY
README.md
README.md
@@ -258,6 +258,24 @@ We are not making use of data_bags in this recipe at this time, as it is unlikel
For more deployment details, visit the [Datadog Documentation site](http://docs.datadoghq.com/).
+### Chef 12
+
+Depending of the Chef 12 version you're using, you will have to add some extra
+dependency constraint.
+
+#### Chef < 12.14
+
+```ruby
+depends 'yum', '< 5.0'
+```
+
+#### Chef < 12.9
+
+```ruby
+depends 'apt', '< 6.0.0'
+depends 'yum', '< 5.0'
+```
+
AWS OpsWorks Chef Deployment
----------------------------

MODIFY
metadata.rb
metadata.rb
@@ -23,15 +23,9 @@ issues_url 'https://github.com/DataDog/chef-datadog/issues'
supports os
end
-depends 'chef_handler'
-# In order to support Chef < 12.9, we need apt_repository which is available
-# in apt < 6.0.0. This will be removed for chef-datadog 4.0 while dropping the support
-# of Chef 12.
-depends 'apt', '< 6.0.0'
-# In order to support Chef < 12.14, we need yum_repository which is available
-# in yum < 5.0. This will be removed for chef-datadog 4.0 while dropping the support
-# of Chef 12.
-depends 'yum', '< 5.0'
+depends 'chef_handler', '>= 1.2'
+depends 'apt' # Use '< 6.0.0' with Chef < 12.9
+depends 'yum', '>= 3.0' # Use '< 5.0' with Chef < 12.14
recipe 'datadog::default', 'Default'
recipe 'datadog::dd-agent', 'Installs the Datadog Agent'

Fix minimum versions of some dependencies + document some Chef 12.x deps needs.