From 7d07cdb9238ac8262d47ab11351dff2fbb00bdf5 Mon Sep 17 00:00:00 2001 From: Jeremy Gibson Date: Wed, 12 Oct 2022 12:25:27 -0400 Subject: [PATCH 1/2] refs #sc-16975 Adds debian noninteractive to NR install process. --- fabulaws/__init__.py | 2 +- fabulaws/library/wsgiautoscale/api.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fabulaws/__init__.py b/fabulaws/__init__.py index 66c607f..b19b12e 100644 --- a/fabulaws/__init__.py +++ b/fabulaws/__init__.py @@ -1 +1 @@ -__version__ = "1.0.13" +__version__ = "1.0.14" diff --git a/fabulaws/library/wsgiautoscale/api.py b/fabulaws/library/wsgiautoscale/api.py index 0218272..2b425b4 100644 --- a/fabulaws/library/wsgiautoscale/api.py +++ b/fabulaws/library/wsgiautoscale/api.py @@ -1709,8 +1709,10 @@ def install_newrelic_infrastructure_agent(): shell=True, ) with settings(warn_only=True): - sudo("apt-get -qq update || apt-get -qq update") - sudo("apt-get install newrelic-infra -y") + sudo( + "export DEBIAN_FRONTEND=noninteractive; apt-get -qq update || apt-get -qq update" + ) + sudo("export DEBIAN_FRONTEND=noninteractive; apt-get install newrelic-infra -y") upload_newrelic_infrastructure_conf() @@ -1736,8 +1738,8 @@ def upload_newrelic_infrastructure_conf(): remote_path="/etc/newrelic-infra.yml", use_sudo=True, ) - # leave the hostname the same for the system monitoring so the servers - # can be linked up properly with the apps by New Relic + # # leave the hostname the same for the system monitoring so the servers + # # can be linked up properly with the apps by New Relic sudo("systemctl restart newrelic-infra") From ff9ba1a70383045bde91bdbff16967a2ba4c0815 Mon Sep 17 00:00:00 2001 From: Jeremy Gibson Date: Wed, 12 Oct 2022 12:37:32 -0400 Subject: [PATCH 2/2] refs #sc-16975 revert an uneeded change in the file --- fabulaws/library/wsgiautoscale/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fabulaws/library/wsgiautoscale/api.py b/fabulaws/library/wsgiautoscale/api.py index 2b425b4..336fa79 100644 --- a/fabulaws/library/wsgiautoscale/api.py +++ b/fabulaws/library/wsgiautoscale/api.py @@ -1738,8 +1738,8 @@ def upload_newrelic_infrastructure_conf(): remote_path="/etc/newrelic-infra.yml", use_sudo=True, ) - # # leave the hostname the same for the system monitoring so the servers - # # can be linked up properly with the apps by New Relic + # leave the hostname the same for the system monitoring so the servers + # can be linked up properly with the apps by New Relic sudo("systemctl restart newrelic-infra")