Also log docker-puppet.py puppet output to console
authorBogdan Dobrelya <bdobreli@redhat.com>
Fri, 28 Jul 2017 09:25:42 +0000 (11:25 +0200)
committerBogdan Dobrelya <bdobreli@redhat.com>
Fri, 28 Jul 2017 09:25:42 +0000 (11:25 +0200)
Running puppet apply with --logdest syslog results in all the output
being redirected to syslog. You get no error messages. In the case where this fails, the subsequent debug task shows nothing useful
as there was no stdout/stderr.

Also pass --logdest console to docker-puppet's puppet apply so that
we get the output for the debug task.

Related-Bug: #1707030

Change-Id: I67df5eee9916237420ca646a16e188f26c828c0e
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
docker/docker-puppet.py

index 36c6388..fadd12d 100755 (executable)
@@ -211,7 +211,7 @@ def mp_puppet_config((config_volume, puppet_tags, manifest, config_image, volume
         sync
 
         FACTER_hostname=$HOSTNAME FACTER_uuid=docker /usr/bin/puppet apply \
-        --color=false --logdest syslog $TAGS /etc/config.pp
+        --color=false --logdest syslog --logdest console $TAGS /etc/config.pp
 
         # Disables archiving
         if [ -z "$NO_ARCHIVE" ]; then