Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chef_handler::default recipe is deprecated #504

Closed
ayarmoluk17 opened this issue Dec 26, 2017 · 4 comments
Closed

chef_handler::default recipe is deprecated #504

ayarmoluk17 opened this issue Dec 26, 2017 · 4 comments
Milestone

Comments

@ayarmoluk17
Copy link

Cookbook version: 2.13.0

When including recipe datadog::dd-handler warning is issued during chef run:

[2017-12-26T10:46:07+00:00] WARN: chef_handler::default recipe has been deprecated. Use the chef_handler resource instead to define handlers from your own wrapper cookbook.
Recipe: datadog::dd-handler
  * chef_gem[chef-handler-datadog] action install (up to date)
  * chef_handler[Chef::Handler::Datadog] action enable (up to date)
@olivielpeau
Copy link
Member

Hi @ayarmoluk17, thanks for reporting this!

Looks like the chef_handler resource was added in v1.4.0 of the chef_handler cookbook (see https://github.com/chef-cookbooks/chef_handler/blob/master/CHANGELOG.md#v140-2016-05-13).

I think it's a good idea to increase our version constraint on that cookbook to ~>1.4.0, #396 would be a good base to start from. I'll work on that if I have some time (or if the warning becomes a breaking change on chef_handler's side), but feel free to contribute if you have the chance!

@olivielpeau olivielpeau added this to the Triage milestone Feb 13, 2018
@iennae
Copy link

iennae commented Apr 2, 2018

@olivielpeau I wouldn't recommend pinning to 1.4.0 especially with the 2.1.1 version including the fix for Chef 13 compatibility.

@olivielpeau
Copy link
Member

@iennae you're right, thanks for mentioning this, I should've written >=1.4.0, we definitely want to allow versions of chef_handler that are compatible with Chef 13.

(as an aside, the metadata currently allows any chef_handler version >= 1.1 https://github.com/DataDog/chef-datadog/blob/v2.15.0/metadata.rb#L26)

@remeh
Copy link
Contributor

remeh commented Mar 22, 2019

Thanks to both of you for your contribution! Having removed the include_recipe in #597 should remove the warning mentioned here.
We're aware of the deprecation of chef_handler but unfortunately, as mentioned in the PR we still need this dep for Chef 12 / 13 for now.
The deprecation warning mentioned here being removed by the PR, I'm closing this issue 👍

@remeh remeh closed this as completed Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants