瀏覽代碼

Add chef-shell scrip to debug

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 3 年之前
父節點
當前提交
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 -