I would like to set the options in the /etc/chef/client.rb file at a knife bootstrap so that first client run are loggt too.
The options I want to set are:
I would like to set the options in the /etc/chef/client.rb file at a knife bootstrap so that first client run are loggt too.
I think your best bet is to add the chef-client cookbook to the run list and let it update the client.rb.
If you want to get these options picked up by the bootstrap run, you’ll need to customize the bootstrap template (which generates the script that knife bootstrap runs on the remote system). Currently, there are no options for log location in the bootstrap code, so you’d want to replace the call to the config_content method in the template with your desired config, or replace the start_chef method with something that runs chef-client -L /path/to/log.