Did you create this recipe inside of the windows cookbook? If not, and you are using a wrapper cookbook, you’ll need to add “depends windows” to the metadata.rb of the cookbook that contains the windows_package resource.
On September 17, 2013 at 9:38:59 AM, Jens Skott (firstname.lastname@example.org) wrote:
I downloaded the windows cookbook from opscode repo and added it to the windows machines runlist aswell as chef_handler cookbook that was a dependency.
Then i made a quick test to install a package in windows with
windows_package “Nimsoft Robot x64” do
options "/qn /norestart"
But it tells me that the resource is not found.
Tel: +46-8-5142 4396
Schibsted Centralen IT
On Tue, Sep 17, 2013 at 3:17 PM, Julian C. Dunn email@example.com wrote:
On Tue, Sep 17, 2013 at 9:10 AM, Jens Skott firstname.lastname@example.org wrote:
Just started playing around with chef for windows and it seems that i need
to add providers to make it work the way I want it.
Tried adding the windows cookbook to use windows_package, but it just tells
me that resource not found.
Can anyone give me some starting pointers how to use chef with windows
Can you elaborate on “added the windows cookbook”?
If you depend on the windows cookbook it should make windows_package
and all the other resources in the Windows cookbook available.