Skip to content

Instantly share code, notes, and snippets.

@Vasu1105
Created April 8, 2015 11:21
Show Gist options
  • Save Vasu1105/275d67afa005f2fdfc9c to your computer and use it in GitHub Desktop.
Save Vasu1105/275d67afa005f2fdfc9c to your computer and use it in GitHub Desktop.
adding log level to info in client.rb for linux systems
diff --git a/lib/chef/azure/core/bootstrap_context.rb b/lib/chef/azure/core/bootstrap_context.rb
index b111111..f70d283 100644
--- a/lib/chef/azure/core/bootstrap_context.rb
+++ b/lib/chef/azure/core/bootstrap_context.rb
@@ -24,8 +24,9 @@ class Chef
def config_content
client_rb = ""
-
+
client_rb << <<-CONFIG
+log_level :info
log_location "#{@config[:log_location]}/chef-client.log"
chef_server_url "#{@chef_config[:chef_server_url]}"
validation_client_name "#{@chef_config[:validation_client_name]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment