Add CI metadata path override

This change adds an environment variable override to change the metadata
path in the Airship config file when using the CI-driven deployment
scripts. This will enable the Treasuremap repository to store
metadata.yaml at the site level while using the same deployment scripts
from airshipctl.

Change-Id: I0862a87417ad7a4d8666df7b34e25327bb40e251
Signed-off-by: Drew Walters <andrew.walters@att.com>
This commit is contained in:
Drew Walters 2020-09-28 15:00:24 +00:00
parent 30914340da
commit 43d4ebe164
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ export REMOTE_PROXY=false
export AIRSHIP_CONFIG_ISO_SERVE_HOST=${HOST:-"localhost"}
export AIRSHIP_CONFIG_ISO_PORT=${SERVE_PORT}
export AIRSHIP_CONFIG_ISO_NAME=${ISO_NAME:-"ubuntu-focal.iso"}
export AIRSHIP_CONFIG_METADATA_PATH=${AIRSHIP_CONFIG_METADATA_PATH:-"airshipctl/manifests/metadata.yaml"}
export SYSTEM_ACTION_RETRIES=30
export SYSTEM_REBOOT_DELAY=30
export AIRSHIP_CONFIG_PRIMARY_REPO_BRANCH=${BRANCH:-"master"}

View File

@ -28,5 +28,5 @@ manifests:
remoteRef: ""
tag: ""
url: ${AIRSHIP_CONFIG_PRIMARY_REPO_URL}
metadataPath: airshipctl/manifests/metadata.yaml
metadataPath: ${AIRSHIP_CONFIG_METADATA_PATH}
targetPath: ${AIRSHIP_CONFIG_MANIFEST_DIRECTORY}