[chef] Re: Need help.. Urgent!


Chronological Thread 
  • From: Vladimir Girnet < >
  • To:
  • Subject: [chef] Re: Need help.. Urgent!
  • Date: Tue, 6 Mar 2012 13:53:31 +0200
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates 10.14.53.7 as permitted sender)

Everything is well-documented:

http://wiki.opscode.com/display/chef/Metadata

On Mar 6, 2012, at 1:26 PM, Madhavan Ramaraju wrote:

Ok, thanks! can you please let me know that what is the use of cookbook metadata.json and runlist ie file.json?

On Tue, Mar 6, 2012 at 4:50 PM, Vladimir Girnet < "> > wrote:
That's the cookbook metadata, not run_list!

Create a JSON file with required run_list as in examples on wiki - http://wiki.opscode.com/display/chef/Setting+the+run_list+in+JSON+during+run+time


On Mar 6, 2012, at 1:13 PM, Madhavan Ramaraju wrote:

Hi,

yes, I created the meta data using the command,
knife cookbook metadata COOKBOOK
Herewith i attached the metadata.json to your reference.
Please do the needful help.

Thanks,
Maddy.

On Tue, Mar 6, 2012 at 4:29 PM, Vladimir Girnet < " target="_blank"> > wrote:
Show your "meatadata.json" file 

Is this "metadata.json" from cookbook? Then you are doing it wrong - http://wiki.opscode.com/display/chef/Setting+the+run_list+in+JSON+during+run+time




Hi Team,

I created the cookbook and node with run list.
I am getting error when i ran the following command,
chef-solo -c /etc/chef/solo.rb -j metadata.json

ArgumentError: Initializing a Chef::RunList::RunListItem from a hash requires
that it have a 'type' and 'name' key

Please let me know that what i missed here?

Regards,
Madhavan R

--
Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com


<metadata.json>

--
Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com



--
Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com




Archive powered by MHonArc 2.6.16.

§