- From: Ringo De Smet <
>
- To:
- Subject: [chef] Re: Re: Re: apt package provider: a lot of return code 100 on apt-get
- Date: Fri, 1 Oct 2010 09:44:25 +0200
- 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=MktZbb15kX4u+1EazHrZsaGcm9zby2frAIZvIXBu1b7MxzKrCmzYLO2QuJLN00yix9 N6Ovp9RcdO//Owly2dzKny0KMOLxLn6xYmQi2tWrWzrdJpQTWhPFK4xX7+NjnM68w2K3 MzonEEgoVU0Xyenm0uvjM8jDWdA9K3gzCeUQ8=
Dan,
On 30 September 2010 17:19, Daniel DeLeo
<
>
wrote:
>
You'll have to modify the bootstrap script. Knife supports templates,
>
including user-defined ones, for bootstrap scripts. So copy the
>
bootstrap script from the source:
>
>
http://github.com/opscode/chef/tree/master/chef/lib/chef/knife/bootstrap/
>
>
to ~/.chef/bootstrap/debug.erb and modify it to run chef-client with
>
`-l debug`. Then run `knife bootstrap` with `-d debug`
I did this, but it is still not what I want. Using the -l option, the
knife bootstrap runs in debug mode, but at that point in time,
everything is still OK. At the end of the run, the bootstrap
daemonizes the chef-client, and *that* first run gives apt-update and
apt-get errors. However, I bootstrap using apt packages and the
/etc/chef/client.rb file has logging set to :info. How can I get the
logging set to :debug in that file at bootstrap time? I tried to set
the log_level via debconf-set-selections (I bootstrap the APT way),
but that isn't set in the initial client.rb file.
Any idea how to set log_level to :debug in the initial /etc/chef/client.rb
file?
Ringo
- [chef] Re: Re: Re: apt package provider: a lot of return code 100 on apt-get, Ringo De Smet, 10/01/2010
Archive powered by MHonArc 2.6.16.