- From: Chad Woolley <
>
- To:
- Subject: [chef] Re: Re: 'Attribute domain is not defined' in bootstrap cookbook
- Date: Sun, 20 Jun 2010 00:02:46 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=WmnjyF9Udt25ay76YR6HAC/ll8hvu1lcfAQEYeJ4ZQqsiJfb5fHzr6mGFHlMVyLCvf C/q+gJeizjHNYyh7vuevO6i6KBhJcRZQxqQGUCPQOwHxd77dlbOEhyH1SwXT8LrCM5c3 9HY6uOHVRYxB+QZkzOHKnM3onGKywDw9btz14=
Thanks, that helped me track it down.
My specific problem is that I was using a ubuntu/debian VM with
bridged networking and dhcp, and I needed to make sure that
/etc/hostname and /etc/hosts 127.0.1.1 entry had a FQDN which ended in
my auto-assigned Top-Level-Domain from DHCP. I just had a single
hostname with no TLD, and 'ohai domain' returned empty.
Then 'hostname --fqdn' worked, which is what 'ohai domain' calls under
the covers.
On Sat, Jun 19, 2010 at 10:43 PM, Daniel DeLeo
<
>
wrote:
>
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.