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

Switch from windows_package to package resource to prevent warnings on each run #101

Closed
phwelo opened this issue Nov 14, 2016 · 3 comments
Closed

Comments

@phwelo
Copy link

phwelo commented Nov 14, 2016

Cookbook version

5.1.0

Chef-client version

PS C:\Windows\system32> chef-client -v
Chef: 12.16.42

Platform Details

Windows 2012R2

Scenario:

Getting a warning. Probably just need to switch 'windows_package' resources with plain old 'package'

[2016-11-14T10:07:17-05:00] WARN: Please use the package resource available in Chef Client 12.6+.
windows_package will be removed in the next major version release
of the Windows cookbook.

Steps to Reproduce:

I'm using the powershell5 recipe, but looks to be used also in powershell3.rb, powershell4.rb, as well as powershell5.rb

Expected Result:

Just needs update before next major release of Chef

@tas50
Copy link
Contributor

tas50 commented Dec 26, 2016

This is something we'll probably do after Chef 13 is released in April. It drops support for Chef < 12.6, which is still pretty popular on the Windows side of things.

@jugatsu
Copy link
Contributor

jugatsu commented Mar 21, 2017

This issue can be closed as we are using built-in windows_package resource from 12.6+.

@jugatsu
Copy link
Contributor

jugatsu commented Mar 21, 2017

@phwelo v6.0 version of powershell cookbook fixes this issue.

@tas50 tas50 closed this as completed Mar 21, 2017
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

3 participants