Эх сурвалжийг харах

Add chef-shell scrip to debug

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 3 жил өмнө
parent
commit
c6612a22a2
1 өөрчлөгдсөн 19 нэмэгдсэн , 0 устгасан
  1. 19 0
      scripts/launch_debug.sh

+ 19 - 0
scripts/launch_debug.sh

@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+cat << _EOF > policy-export/.chef/config_solo.rb
+log_level          :debug
+log_location       '/dev/null'
+ssl_verify_mode    :verify_none
+file_cache_path    "./.chef/local-mode-cache/cache/cookbooks"
+cookbook_path      ["./cookbook_artifacts"]
+
+# Mixlib::Log::Formatter.show_time specifies whether the log should
+# contain timestamps.
+# valid values are true or false. The printed timestamp is rfc2822, for example:
+# Fri, 31 Jul 2009 19:19:46 -0600
+Mixlib::Log::Formatter.show_time = true
+_EOF
+
+cd policy-export
+bundle exec chef-shell -s -c .chef/config_solo.rb
+cd -