mirror of
https://github.com/inspec/inspec
synced 2024-11-24 21:53:15 +00:00
set env CHEF_TELEMETRY_URL
in CI
Signed-off-by: Sathish <sbabu@progress.com>
This commit is contained in:
parent
563c2449b9
commit
f97d04ed41
2 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,8 @@ vault version
|
|||
echo "--- fetching License serverl url and keys from vault"
|
||||
# Note: Currently, the value for the local license server is a static IP address. Please update this to a DNS name when available.
|
||||
$Env:CHEF_LICENSE_SERVER=vault kv get -field ci secret/inspec/licensing/server
|
||||
# Note: Currently, this returns blank response
|
||||
$Env:CHEF_TELEMETRY_URL=vault kv get -field ci secret/inspec/telemetry/server
|
||||
|
||||
echo "--- verifying if environment variables are set"
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@ unzip -o $VAULT_HOME/vault.zip -d $VAULT_HOME
|
|||
echo "--- fetching License serverl url and keys from vault"
|
||||
# Note: Currently, the value for the local license server is a static IP address. Please update this to a DNS name when available.
|
||||
export CHEF_LICENSE_SERVER=$($VAULT_HOME/vault kv get -field ci secret/inspec/licensing/server)
|
||||
# Note: Currently, this returns blank response
|
||||
export CHEF_TELEMETRY_URL=$($VAULT_HOME/vault kv get -field ci secret/inspec/telemetry/server)
|
||||
|
||||
if [ -n "${CI_ENABLE_COVERAGE:-}" ]; then
|
||||
echo "--- fetching Sonar token from vault"
|
||||
|
|
Loading…
Reference in a new issue