- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: hostname problems
- Date: Mon, 19 Apr 2010 21:24:52 -0700
Just set a FQDN in /etc/hosts. You'll know you have it right when
`hostname -f` is something like hostname.domainname or `ohai domain`
gives you the domain name.
http://wiki.opscode.com/display/chef/Bootstrap+Chef+RubyGems+Installation#BootstrapChefRubyGemsInstallation-FullyQualifiedDomainNames
HTH,
Dan DeLeo
On Mon, Apr 19, 2010 at 9:17 PM,
<
>
wrote:
>
Any help would be double super awesome!
>
>
>
$ chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json
>
[Tue, 20 Apr 2010 03:43:45 +0000] INFO: Starting Chef Solo Run
>
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'right_aws'
>
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'mysql'
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node/attribute.rb:387:in
>
`method_missing': Attribute domain is not defined! (ArgumentError)
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in
>
`send'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in
>
`method_missing'
>
from /var/chef-solo/cookbooks/bootstrap/attributes/bootstrap.rb:49:in
>
`from_file'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:83:in
>
`load_attribute_file'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:76:in
>
`load_attributes'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:75:in
>
`each'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:75:in
>
`load_attributes'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:78:in
>
`load_attributes'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:132:in
>
`each'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook_loader.rb:131:in
>
`each'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:77:in
>
`load_attributes'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/compile.rb:52:in
>
`initialize'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:316:in
>
`new'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:316:in
>
`converge'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/client.rb:110:in
>
`run_solo'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:198:in
>
`run_application'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:190:in
>
`loop'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application/solo.rb:190:in
>
`run_application'
>
from
>
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/application.rb:57:in
>
`run'
>
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/chef-solo:26
>
from /usr/local/bin/chef-solo:19:in `load'
>
from /usr/local/bin/chef-solo:19
>
>
>
$ cat /etc/hostname
>
mindbullet
>
>
$ cat /etc/hosts
>
127.0.0.1 localhost mindbullet.local
>
209.##.##.### mindbullet
>
>
$ hostname -f
>
mindbullet
>
>
$ cat /etc/lsb-release
>
DISTRIB_ID=Ubuntu
>
DISTRIB_RELEASE=9.10
>
DISTRIB_CODENAME=karmic
>
DISTRIB_DESCRIPTION="Ubuntu 9.10"
>
>
>
I followed this blog post for the install
>
http://akitaonrails.com/2010/02/20/cooking-solo-with-chef
>
>
the gist is here
>
http://gist.github.com/372008
>
>
Thanks
>
Kirk
>
Archive powered by MHonArc 2.6.16.