[chef] Re: Re: metadata and cookbook names


Chronological Thread 
  • From: "steve ." < >
  • To: " " < >
  • Subject: [chef] Re: Re: metadata and cookbook names
  • Date: Fri, 11 Oct 2013 13:04:48 -0700

metadata.rb is definitely required.

In fact, I believe the cookbook name in metadata.rb is actually honored over the directory name...


On Fri, Oct 11, 2013 at 8:08 AM, Andrew Gross < " target="_blank"> > wrote:
1. Assume metadata.rb is required. I am not 100% sure if Chef can operate without one in the cookbook, but you should set up a commit hook so that it forces the metadata.rb file to exist.

2.  The name is metadata.rb is respected. All dependency resolvers should unpack the cookbooks and parse the metadata file to find the name.

For an example check out "cookbook-elasticsearch".


The name in metadata.rb is "elasticsearch" and that is how it is referred to internally.


On Fri, Oct 11, 2013 at 9:50 AM, Lucian Ciufudean < " target="_blank"> > wrote:
Hi guys,

A have a couple of questions in this area:

1. Is the metadata.rb file mandatory in a cookbook?
2. if metadata.rb is present, and it specifies a different name than
the cookbook archive filename, which is the name considered by
cookbook dependency resolution alg during a chef-run?

Thanks,
Lucian





Archive powered by MHonArc 2.6.16.

§