I want to create a log file of the chef-client execution at /root/logs
path.
How to add code in recipe file that will create a logs file in above location?
Please help me with this.
Run the chef client with -L option followed by expected log location.
chef-client -L /root/logs/chef-client.log
https://docs.chef.io/debug.html#chef-client
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With