df923a
From 6e471f1224b1c357c86b0aa70d5e51e19eb6ffe2 Mon Sep 17 00:00:00 2001
df923a
From: Miroslav Rezanina <mrezanin@redhat.com>
df923a
Date: Thu, 31 May 2018 19:46:53 +0200
df923a
Subject: remove 'tee' command from logging configuration
20a859
20a859
the default logging configuration passes all cloud-init output through
20a859
'tee' in order to generate /var/log/cloud-init-output.log.  This is
20a859
redundant on modern systems, since stdout/stderr are captured by
20a859
systemd and available via journalctl.
20a859
20a859
Resolves: rhbz#1424612
20a859
X-downstream-only: true
df923a
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
20a859
---
20a859
 config/cloud.cfg.d/05_logging.cfg | 5 -----
20a859
 1 file changed, 5 deletions(-)
20a859
20a859
diff --git a/config/cloud.cfg.d/05_logging.cfg b/config/cloud.cfg.d/05_logging.cfg
20a859
index 937b07f..4be8866 100644
20a859
--- a/config/cloud.cfg.d/05_logging.cfg
20a859
+++ b/config/cloud.cfg.d/05_logging.cfg
20a859
@@ -64,8 +64,3 @@ log_cfgs:
20a859
  - [ *log_base, *log_file ]
20a859
 # A file path can also be used.
20a859
 # - /etc/log.conf
20a859
-
20a859
-# This tells cloud-init to redirect its stdout and stderr to
20a859
-# 'tee -a /var/log/cloud-init-output.log' so the user can see output
20a859
-# there without needing to look on the console.
20a859
-output: {all: '| tee -a /var/log/cloud-init-output.log'}
df923a
-- 
df923a
1.8.3.1
df923a