[chef] Re: Re:


Chronological Thread 
  • From: Shyam Goud < >
  • To:
  • Subject: [chef] Re: Re:
  • Date: Tue, 10 Sep 2013 17:43:09 +0530

Thanks for the reply Steven,

I did that too.. on my chef-server

/opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/bootstrap_context.rb
---- snip -------------
def config_content
client_rb = <<-CONFIG
log_level        :info
log_location     STDOUT
chef_server_url  " :chef_server_url]}"
validation_client_name " :validation_client_name]}"
-----------------------


But still client.rb on bootstrapped machine shows as

:/etc# cat chef/client.rb
log_level        :auto
log_location     STDOUT
chef_server_url  "https://chefserver.nvsd.com/"
validation_client_name "chef-validator"
node_name "controllernode.nvsd.com"

:/etc#


Regards,
Shyam.


On Tue, Sep 10, 2013 at 5:24 PM, Steven De Coeyer < " target="_blank"> > wrote:
Hi Shyam

With knife bootstrap there is no option to set log level. I don't see why it would default to 'WARN' though.. 
You could alway edit /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/knife/core/bootstrap_context.rb on your server, but I would not recommend it.

Kr,
Steven


Thanks for the reply Luis.

"chef-client --log-level info" needs to be run from Client Machine (Bootstrapped Machine) ?

I want to see the detailed execution logs while bootstrapping from workstation, right now it seems the log_level is auto in 11.4.4 ( which is converted as "WARN" ).
While bootstrapping is there any way i can see the chef logs like "--log-level: info"

Regards,
Shyam




On Tue, Sep 10, 2013 at 4:31 PM, Luis Mondesi < " target="_blank"> > wrote:
Do "chef-client --help" and look for log level. I believe is "--loglevel info".

That way you set the option at run time. 

Regards,

--
A bug magnet
Hello All,

I want to set chef_client log_level to Info while bootstrapping. Right now i see it is set to :auto in client.rb.

I believe client.rb is pushed from chef-server to client right ? What config files on chef-server needs to be modified for changing the default log_level ?
:/etc# chef-client -v
Chef: 11.4.4

:/etc# cat chef/client.rb

log_level        :auto
log_location     STDOUT
chef_server_url  "https://chefserver.nvsd.com/"
validation_client_name "chef-validator"
node_name "controllernode.nvsd.com
Thanks in advance.
Shyam






Archive powered by MHonArc 2.6.16.

§