[chef] RE: Re: Re: RE: Re: RE: Re: Why is my windows_package source attribute getting mucked up?


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] RE: Re: Re: RE: Re: RE: Re: Why is my windows_package source attribute getting mucked up?
  • Date: Thu, 12 Feb 2015 17:36:33 +0000
  • Accept-language: en-US

I get the error reported here, and I have Windows Server 2012 R2

 

http://lists.opscode.com/sympa/arc/chef/2014-05/msg00328.html

 

Chris

 

From: Todd Pigram [mailto:
Sent: Thursday, February 12, 2015 12:22 PM
To:
Subject: [chef] Re: Re: RE: Re: RE: Re: Why is my windows_package source attribute getting mucked up?

 

windows_package can use URLs. I use them everyday. 

 

Attribute

 

 

Recipe

 

windows_package "7-Zip 9.20 (x64 version)" do

  source node['tool']['url']

  action :install

  not_if {::File.exists?(node['tool']['file'])}

  not_if {reboot_pending?}

end

 

 

 

 

 

On Thu, Feb 12, 2015 at 11:42 AM, Matthew Moretti < " target="_blank"> > wrote:

After looking around a little bit, I actually can’t see any evidence that any of the _package resources can take an http “source” with the exception of “gem_package”. The standard way to go about this if you can’t use the OS’s built-in package manager is to retrieve the file with remote_file and then install it. You’re pretty-much just running up against “Linux, BSD, and Mac (sort of) have a package management system, Windows doesn’t”.

That being said, it does seem like a reasonable feature to have and it probably wouldn’t be too hard for you to implement if it’s very important to you. I’m sure others would appreciate the contribution.

Matt Moretti

 

 

On Thu, Feb 12, 2015 at 10:47 AM, Fouts, Chris < " target="_blank"> > wrote:

I disagree.

winodow_package "could" have been written such that when the source is a URL (http://), it would do a remote_file first, and then execute the local package, all underneath the covers. Then its behavior is in-line with the package resource.

Chris

-----Original Message-----
From: Daniel DeLeo [mailto: " target="_blank"> ] On Behalf Of Daniel DeLeo
Sent: Wednesday, February 11, 2015 12:08 PM
To: " target="_blank">

Subject: [chef] Re: RE: Re: Why is my windows_package source attribute getting mucked up?



On Tuesday, February 10, 2015 at 2:46 PM, Fouts, Chris wrote:

> More (annoying) inconsistencies (in expectations) between Windows and Linux based nodes.
>
> Chris

I agree there are a lot of areas where Windows functionality needs to catch up, but this isn’t one of them. On Linux when you install a package that doesn’t come from a centralized package repo, you have to use a separate remote file to fetch it as well. The difference is that most Linux distros come with a centralized package repo, which provides most of the packages you want. The only way Chef could make windows behave similarly is to force you to install Chocolatey when you install Chef. FWIW I had the exact same experience on Solaris a few years back where the only centralized package repos are (were?) 3rd party so you had to do a bit of extra work to fetch everything.

--
Daniel DeLeo

 



 

--

Mobile - 216-224-5769

 

 




Archive powered by MHonArc 2.6.16.

§