- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: 'Attribute domain is not defined' in bootstrap cookbook
- Date: Sat, 19 Jun 2010 22:43:16 -0700
Ohai!
The bootstrap recipe relies on your domain name being set, which you
can do by editing your /etc/hosts file. You can check that chef has
the right value by running `ohai domain` at the command line.
HTH,
Dan DeLeo
On Sat, Jun 19, 2010 at 10:12 PM, Chad Woolley
<
>
wrote:
>
This line in the bootstrap cookbook:
>
>
http://github.com/opscode/cookbooks/blob/master/bootstrap/attributes/default.rb#L52
>
>
Is giving this error:
>
>
DEBUG: Loading attributes from
>
/home/ubuntu/chef/railsci_chef_repo/cookbooks/opscode/bootstrap/attributes/default.rb
>
/home/ubuntu/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.8.16/bin/../lib/chef/node/attribute.rb:387:in
>
`method_missing': Attribute domain is not defined! (ArgumentError)
>
from
>
/home/ubuntu/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.8.16/bin/../lib/chef/node.rb:252:in
>
`send'
>
from
>
/home/ubuntu/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.8.16/bin/../lib/chef/node.rb:252:in
>
`method_missing'
>
from
>
/home/ubuntu/chef/railsci_chef_repo/cookbooks/opscode/bootstrap/attributes/default.rb:52:in
>
`from_file'
>
>
This is using latest gem chef (0.8.16)
>
Archive powered by MHonArc 2.6.16.