If we have in Chef cookbook code like:
if !File.exists?('/vagrant/project/target/project/WEB-INF") || node[:compile_project]
bash "build project" do
user "vagrant"
cwd "/vagrant/project"
code <<-EOH
mvn clean
mvn db-migration:migrate
mvn package
EOH
end
end
When run vagrant up
we can see only brief information that 'build project' is executed.
However wen we run 'mvn package' command from terminal we can see full command output. How to tell Vagrant/Chef to show full output?
EDIT:
I've tried this but nothing has changed in output.
config.vm.provision :chef_solo do |chef|
chef.log_level = :debug
returns 2
andignore_failure
, which would fail every time. You get full output on failure. I would only use this technique to debug, however. And submit a feature request to opscode. – Louden