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
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
On Mar 6, 2012, at 12:37 PM, madhuupri@gmail.com madhuupri@gmail.com wrote:
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
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
vgirnet@tacitknowledge.comwrote:
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
On Mar 6, 2012, at 12:37 PM, madhuupri@gmail.com madhuupri@gmail.com
wrote:
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
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 vgirnet@tacitknowledge.com 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
On Mar 6, 2012, at 12:37 PM, madhuupri@gmail.com madhuupri@gmail.com wrote:
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
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
vgirnet@tacitknowledge.comwrote:
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 <
vgirnet@tacitknowledge.com> 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
On Mar 6, 2012, at 12:37 PM, madhuupri@gmail.com madhuupri@gmail.com
wrote:
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
Everything is well-documented:
http://wiki.opscode.com/display/chef/Metadata
http://wiki.opscode.com/display/chef/Anatomy+of+a+Chef+Run
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 vgirnet@tacitknowledge.com 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 vgirnet@tacitknowledge.com 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
On Mar 6, 2012, at 12:37 PM, madhuupri@gmail.com madhuupri@gmail.com wrote:
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
Hmmm great.
I am using centos - 5.5, and the cookbook recipe should look like,
yum_package "httpd" do
action: install
end
It will take long time to installation?
If yes, Is there any way ?
On Tue, Mar 6, 2012 at 5:23 PM, Vladimir Girnet
vgirnet@tacitknowledge.comwrote:
Everything is well-documented:
http://wiki.opscode.com/display/chef/Metadata
http://wiki.opscode.com/display/chef/Anatomy+of+a+Chef+Run
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 <
vgirnet@tacitknowledge.com> 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 <
vgirnet@tacitknowledge.com> 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
On Mar 6, 2012, at 12:37 PM, madhuupri@gmail.com madhuupri@gmail.com
wrote:
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
On Mar 6, 2012, at 6:05 AM, Madhavan Ramaraju wrote:
I am using centos - 5.5, and the cookbook recipe should look like,
yum_package "httpd" do
action: install
end
It will take long time to installation?
Depends on where and how fast your machine/VM is, where and how fast the nearest mirror is, and how fast the network is between those two points. It might take just a few seconds, or it might take minutes, or it might take longer.
If yes, Is there any way ?
Any way to do what? You could always set up a local mirror for CentOS and then you'd be guaranteed that everything would be as fast as it could possibly be, but it would take much longer to do that than to just install apache/httpd -- you might end up needing to mirror over a terabyte of storage, depending on what all you try to include.
--
Brad Knowles bknowles@ihiji.com
SAGE Level IV, Chef Level 0.0.1