Windows providers


#1

Hey.
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
efficient?

Jens Skott
Tel: +46-8-5142 4396
Schibsted Centralen IT


#2

On Tue, Sep 17, 2013 at 9:10 AM, Jens Skott jens.skott@schibsted.se wrote:

Hey.
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
efficient?

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.

  • Julian

#3

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
source "
http://monitor.schibsted.se:8080/setupFiles/nimsoft-robot-x64.msi"
options "/qn /norestart"
action :install
end

But it tells me that the resource is not found.

Jens Skott
Tel: +46-8-5142 4396
Schibsted Centralen IT

On Tue, Sep 17, 2013 at 3:17 PM, Julian C. Dunn jdunn@aquezada.com wrote:

On Tue, Sep 17, 2013 at 9:10 AM, Jens Skott jens.skott@schibsted.se
wrote:

Hey.
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
efficient?

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.

  • Julian

#4

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 (jens.skott@schibsted.se) 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
source "http://monitor.schibsted.se:8080/setupFiles/nimsoft-robot-x64.msi"
options "/qn /norestart"
action :install
end

But it tells me that the resource is not found.

Jens Skott
Tel: +46-8-5142 4396
Schibsted Centralen IT

On Tue, Sep 17, 2013 at 3:17 PM, Julian C. Dunn jdunn@aquezada.com wrote:
On Tue, Sep 17, 2013 at 9:10 AM, Jens Skott jens.skott@schibsted.se wrote:

Hey.
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
efficient?

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.

  • Julian