How can I set the log output level for Chef on Amazon OpsWorks? -


my question similar to: how can display output of opscode chef bash command in console?

i want able see console output running recipe. in particular, recipe failed start jboss because java_home not being set. took me entire day figure out because statement java_home undefined not being printed chef output. when running chef solo, debugging output can turned on appending -l debug command, in: chef-solo -c solo.rb -j node.json -l debug

however, when using amazon opsworks, there no such option:

sudo opsworks-agent-cli run_command [activity] [date] [/path/to/valid/json.file] 

how can add log level run_command?

try running:

 cd /opt/aws/opsworks/current bundle exec chef-solo -l debug -c conf/solo.rb -j /var/lib/aws/opsworks/chef/xxx.json 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -