hashicorp / hashicorp/packer

Allow Shell provisioner to redirect its output into a logfile

Open
#11,907 2 comments 1 reaction 0 assignees View on GitHub
enhancement question stage/thinking
Dominant language
Go
Stars
15.8k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

I am using a shell provisioner which writes a lot of output to stdout.
Most of the times, this output just spams my build log and I do not need, but occasionally I want to have a look at it for debugging purposes.

What I would like, is to have an extra option for the [shell-provisioner](https://www.packer.io/docs/provisioners/shell) to specify a local file (on the build host) where all output from my script gets redirected to.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.