Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have the following snippet in a chef recipe:

chef::Log.info("Installing pips using requirements file: #{requirements_file}")
execute "pip install -E #{ve.path} -r #{requirements_file}" do
  user deploy_user
  cwd deploy_path
end

This installs a number of packages, and I'd like to see the output of "pip install" as chef-client is working when I invoke it via SSH. Is there any way to log the output of the execute command so that writes to the log as pip is running?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If you are looking at chef to show, running it using '-l debug' which show it. Alternatively, pip can log the activity using '--log=FILENAME' option.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.