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 ?
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 ?
root@controller:/etc# chef-client -v
Chef: 11.4.4
"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 lemsx1@gmail.com wrote:
Do "chef-client --help" and look for log level. I believe is "--loglevel
info".
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 ?
"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 lemsx1@gmail.com wrote:
Do "chef-client --help" and look for log level. I believe is "--loglevel info".
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 ?
root@controller:/etc# chef-client -v
Chef: 11.4.4
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.
"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 lemsx1@gmail.com wrote:
Do "chef-client --help" and look for log level. I believe is "--loglevel info".
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 ?
root@controller:/etc# chef-client -v
Chef: 11.4.4
But still client.rb on bootstrapped machine shows as
*
root@controller:/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"
root@controller:/etc#*
Regards,
Shyam.
On Tue, Sep 10, 2013 at 5:24 PM, Steven De Coeyer steven@banteng.be 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.
"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 lemsx1@gmail.com wrote:
Do "chef-client --help" and look for log level. I believe is "--loglevel
info".
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 ?
You need to do any hacking on the box you run knife bootstrap from. This won't affect any already-bootstrapped machines (though you can manage those with the chef-client cookbook to your liking).
Take a look at bootstrap templates for customizing the config on the bootstrapped machine: