[chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Created windows instance using chef along with require application


Chronological Thread 
  • From: Vishal Totare < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Created windows instance using chef along with require application
  • Date: Fri, 11 Apr 2014 20:25:48 +0530

Yes Bryan, Therefore am successfully able to install IIS on the server.

But if am using "windows_package" in default.rb to install anything then am getting the error. Mean i can't install anything on my windows machine.

e.g.:-  cookbooks/zip/recipe/In default.rb
windows_package "7-Zip 9.20 (x64 edition)" do
  source "http://downloads.sourceforge.net/sevenzip/7z920-x64.msi"
  action :install
end




On Fri, Apr 11, 2014 at 8:19 PM, Bryan McLellan < " target="_blank"> > wrote:
On Thu, Apr 10, 2014 at 6:54 AM, Vishal Totare < "> > wrote:
> But now am getting the different error.

That error is because chef is using the new windows_package provider
in core chef, rather than the LWRP in the windows cookbook.

Do you have the windows cookbook in your run list before the java
recipe? The java cookbook 'suggests' the windows cookbook rather than
'depends' so you'll need them in your run list so the LWRP gets loaded
and overrides the core windows_package resource.

https://github.com/socrata-cookbooks/java/blob/master/README.md#windows

Bryan




Archive powered by MHonArc 2.6.16.

§