[cfg01] apt.conf.d: Dpkg::Use-Pty: 0 21/51321/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 25 Jan 2018 23:31:17 +0000 (00:31 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 29 Jan 2018 17:12:21 +0000 (17:12 +0000)
This will silence all 'Reading database ...' noise during Salt formula
installation.

Change-Id: I734d727194e276443db1e1581f40ec494562196e
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 80212433352a59be69f7c82bce8c297bca13eeaf)

mcp/patches/0011-system.repo-Debian-Add-keyserver-proxy-support.patch
mcp/scripts/salt.sh

index 1ff519e..fdf84dc 100644 (file)
@@ -1,3 +1,11 @@
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+: Copyright (c) 2017 Mirantis Inc., Enea AB and others.
+:
+: All rights reserved. This program and the accompanying materials
+: are made available under the terms of the Apache License, Version 2.0
+: which accompanies this distribution, and is available at
+: http://www.apache.org/licenses/LICENSE-2.0
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
 Date: Mon, 22 Jan 2018 00:28:09 +0100
 Subject: [PATCH] system.repo: Debian: Add keyserver proxy support
index 72c0502..0d0b809 100755 (executable)
@@ -70,6 +70,7 @@ ssh ${SSH_OPTS} "${SSH_SALT}" bash -s -e << SALT_INSTALL_END
 
   cd /srv/salt/scripts
   export DEBIAN_FRONTEND=noninteractive
+  echo 'Dpkg::Use-Pty "0";' > /etc/apt/apt.conf.d/90silence-dpkg
   OLD_DOMAIN=\$(grep -Pzo "id: cfg01\.\K(\S*)" /etc/salt/minion.d/minion.conf) || true
   BOOTSTRAP_SALTSTACK_OPTS=" -r -dX stable 2016.11 " \
     MASTER_HOSTNAME=cfg01.${CLUSTER_DOMAIN} DISTRIB_REVISION=2017.12 \