- From: Tim Uckun <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: New user feedback and questions
- Date: Wed, 9 Sep 2009 16:50:05 +1200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AP6HpBplTHHQaffs7g/b6UrJh1XMTDOHU1smu5eNJfOMRJJbpcn+ixSSGJzjD6WxEf EckO1DIhtvuYfEdur1kY11odKsnCJp9R37Prp1GhcoYMs/jU03ZxrTLk6dyaQ0gH2eK0 c/rFmgyA813k59xPBpGs01pqjgahGP0BdfA+Y=
>
>
Cool! We'd love to hear about your successes with Chef. If you have any
>
issues, post to the list, or ask on IRC.
Today I got the client set up from the apt repository using this
bootstrap script
sudo echo "deb
http://apt.opscode.com/ jaunty universe" >
/etc/apt/sources.list.d/opscode.list
wget -qO -
http://apt.opscode.com/
| sudo
apt-key add -
apt-get update
apt-get -y install ohai chef
chef-client --server
https://chef.myserver.com
That installed all the dependencies and put chef-client and ohai in /usr/bin.
I then downloaded the opscode cookbooks to study them and wrote my own
"chef-client" cookbook just to try it. I copied the opscode cookbook
and hacked away at it all day.
Being an ornery sort of person I decided to really change the way the
recipe was written to see what would happen and how chef would react
to really broken cookbooks.
Long story short...
I was able to get the client and the server talking each other.
I was able to deploy my cookbooks
My cookbooks all passed the syntax check.
My cookbook is failing to run on the client with a cryptic message
which I have yet to hunt down.
/usr/lib/ruby/1.8/chef/mixin/template.rb:33:in `render_template':
undefined local variable or method `client' for
#<Erubis::Context:0xb76d2010> (Chef::Mixin::Template::TemplateError)
from /usr/lib/ruby/1.8/chef/provider/template.rb:102:in
`action_create'
from /usr/lib/ruby/1.8/chef/runner.rb:85:in `send'
from /usr/lib/ruby/1.8/chef/runner.rb:85:in `converge'
from /usr/lib/ruby/1.8/chef/runner.rb:83:in `each'
from /usr/lib/ruby/1.8/chef/runner.rb:83:in `converge'
from /usr/lib/ruby/1.8/chef/resource_collection.rb:58:in `each'
from /usr/lib/ruby/1.8/chef/resource_collection.rb:57:in `each'
from /usr/lib/ruby/1.8/chef/runner.rb:61:in `converge'
from /usr/lib/ruby/1.8/chef/client.rb:382:in `converge'
from /usr/lib/ruby/1.8/chef/client.rb:82:in `run'
from /usr/lib/ruby/1.8/chef/application/client.rb:186:in
`run_application'
from /usr/lib/ruby/1.8/chef/application/client.rb:178:in `loop'
from /usr/lib/ruby/1.8/chef/application/client.rb:178:in
`run_application'
from /usr/lib/ruby/1.8/chef/application.rb:57:in `run'
from /usr/bin/chef-client:25
Obviously one of my templates has an error in it.
BTW can chef email me the error? I would prefer that every time a
client had a problem it email me the message.
Archive powered by MHonArc 2.6.16.