- From: Ringo De Smet <
>
- To:
- Subject: [chef] Re: Re: Re: apt package provider: a lot of return code 100 on apt-get
- Date: Wed, 6 Oct 2010 13:27:47 +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=yAnJsbkvAYj9PRLxdZecZGhZ/E3WEJZF2KtgovgOzWNyM0emD7rVGOhuDwUIihEjcF 4meNs67u+HnSjxq5MNO3f/PITQBMEUQrbY0Ge7rvpdBMyktXIheuESxUmxn9QDfIePzV tLplFsbjcujr2xicNGlrfxgDQ+Eaf89RUtmzM=
On 1 October 2010 09:44, Ringo De Smet
<
>
wrote:
>
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?
Anyone?
Ringo
Archive powered by MHonArc 2.6.16.