My question is similar to: How can I display the output of a Opscode Chef bash command in my console?
I want to be able to see console output for my running recipe. In particular, my recipe failed to start JBoss because JAVA_HOME
was not being set. It took me an entire day to figure this out because the statement JAVA_HOME is undefined
was not being printed to the Chef output. When running chef solo, debugging output can be turned on by appending -l debug
to the command, as in: chef-solo -c solo.rb -j node.json -l debug
However, when using Amazon OpsWorks, there is no such option:
sudo opsworks-agent-cli run_command [activity] [date] [/path/to/valid/json.file]
How can I add a log level to run_command
?