From ba486d8a8dae810aa382a3b6dc25b58447b77372 Mon Sep 17 00:00:00 2001 From: Sirajudeen Date: Wed, 14 Jul 2021 20:37:23 +0000 Subject: [PATCH] Read site name from env instead of hardcoded value * Read site name from env, so that treasuremap's default site 'virtual-airship-core' can be set in env and used in template. Change-Id: I94d509ce9527bc79b9dbcaf3068a11ad1f5bf66e --- tools/gate/00_setup.sh | 1 + tools/gate/config_template.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/gate/00_setup.sh b/tools/gate/00_setup.sh index 90fc46927..fcfabf4f0 100755 --- a/tools/gate/00_setup.sh +++ b/tools/gate/00_setup.sh @@ -23,6 +23,7 @@ export IMAGE_DIR=${IMAGE_DIR:-"/srv/images"} export SERVE_PORT=${SERVE_PORT:-"8099"} export AIRSHIPCTL_WS=${AIRSHIPCTL_WS:-$PWD} export TMP_DIR=${TMP_DIR:-"$(dirname $(mktemp -u))"} +export SITE=${SITE:-"test-site"} ANSIBLE_CFG=${ANSIBLE_CFG:-"${HOME}/.ansible.cfg"} ANSIBLE_HOSTS=${ANSIBLE_HOSTS:-"${TMP_DIR}/ansible_hosts"} diff --git a/tools/gate/config_template.yaml b/tools/gate/config_template.yaml index 1dbcc158e..781e06ff4 100644 --- a/tools/gate/config_template.yaml +++ b/tools/gate/config_template.yaml @@ -15,7 +15,7 @@ serve_dir: /srv/images serve_port: 8099 local_src_dir: "$AIRSHIPCTL_WS" ansible_user: root -site_name: test-site +site_name: "$SITE" sphinx_build_dir: docs/build python_version: 3.7 zuul: