[chef] Re: metadata "supports" setting


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: " " < >
  • Subject: [chef] Re: metadata "supports" setting
  • Date: Fri, 20 Sep 2013 13:41:03 -0700

There's an open ticket for implementing platform-specific loading of cookbooks for this exact reason.

--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS


On Fri, Sep 20, 2013 at 1:24 PM, < " target="_blank"> > wrote:
How exactly is the "supports" setting used?  I ask because I have a Windows
only cookbook with the following declaration in the metadata.rb:

supports         "windows"

This cookbook is used by an LWRP in another cookbook that supports both Windows
and RedHat:

supports         "windows"
supports         "redhat"

This cookbook is used by another, which is in turn used by another, ... on and
on.

When using the 10.18.2 client and a run list on Linux that indirectly uses the
Windows only cookbook, the Windows only cookbook is downloaded and its
attributes evaluated.

I found this out because the Windows only cookbook contains some custom audit
information that is incomplete because it isn't applicable on Linux.  I would
prefer for this cookbook to not have it attributes evaluated at all.

Is there any way to prevent Windows only cookbooks from having their attributes
evaluated on Linux?




Archive powered by MHonArc 2.6.16.

§