Fix proxy for Grafana script

The prometheus/grafana script needs to download a grafana json
file by curl which doesn't work since the proxy issue. This patch
fixes it.

Task: 38167
Story: 2007005

Change-Id: I51ba108e23524eecc04bbbd47a5b50b8d4a529f9
(cherry picked from commit 4346d776e5)
This commit is contained in:
Feilong Wang 2020-01-18 17:33:30 +13:00 committed by Spyros Trigazis
parent 1115672e72
commit 84cd9ca381
2 changed files with 16 additions and 0 deletions

View File

@ -5,6 +5,18 @@ printf "Starting to run ${step}\n"
. /etc/sysconfig/heat-params . /etc/sysconfig/heat-params
if [ ! -z "$HTTP_PROXY" ]; then
export HTTP_PROXY
fi
if [ ! -z "$HTTPS_PROXY" ]; then
export HTTPS_PROXY
fi
if [ ! -z "$NO_PROXY" ]; then
export NO_PROXY
fi
function writeFile { function writeFile {
# $1 is filename # $1 is filename
# $2 is file content # $2 is file content

View File

@ -0,0 +1,4 @@
---
fixes:
- |
This proxy issue of Prometheus/Grafana script has been fixed.