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

Deprecation messsages from windows cookbook #149

Closed
imchanhtin opened this issue Dec 13, 2022 · 0 comments
Closed

Deprecation messsages from windows cookbook #149

imchanhtin opened this issue Dec 13, 2022 · 0 comments

Comments

@imchanhtin
Copy link
Contributor

imchanhtin commented Dec 13, 2022

👻 Brief Description

The windows cookbook is EOL and this cookbook still depend on it. It will create some deprecation messages we run. Can we add a filter on depend part to remove the deprecation messages.

       Deprecation warnings that must be addressed before upgrading to Chef Infra 18:
       
         The  resource in the windows cookbook should declare `unified_mode true` at 5 locations:
           - C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/cookbooks/windows/resources/certificate_binding.rb
           - C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/cookbooks/windows/resources/dns.rb
           - C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/cookbooks/windows/resources/http_acl.rb
           - C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/cookbooks/windows/resources/schannel.rb
           - C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/cookbooks/windows/resources/zipfile.rb
          See https://docs.chef.io/deprecations_unified_mode/ for further details.
       
       Infra Phase complete, 8/10 resources updated in 01 minutes 23 seconds

🥞 Cookbook version

6.2.5

👩‍🍳 Chef-Infra Version

Version of chef-client: 17.x & 18.x

🎩 Platform details

  • Windows 8, 8.1
  • Windows Server 2012 (R1, R2)
  • Windows Server 2016
  • Windows Server 2019

Steps To Reproduce

Steps to reproduce the behavior:

Run chef-client with this cookbook on list above windows server

🚓 Expected behavior

Add filter to only depend windows cookbook if chef version is older than 13.
Example:
depends 'windows', '>= 3.0' unless Chef::VERSION.to_f >= 14

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

2 participants