add uniqueness to cluster prefix

This commit is contained in:
pokeeffe-molecula 2022-01-04 16:36:11 -06:00
parent cfacc72c53
commit ca5633c594
5 changed files with 4 additions and 6 deletions

View file

@ -251,6 +251,7 @@ smoke test:
- wget https://go.dev/dl/go1.17.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- export TF_VAR_cluster_prefix="smoke-$(openssl rand -base64 12 | tr -d /=+ | cut -c -16)"
script:
- ./qa/scripts/setupSmokeTest.sh
- ./qa/scripts/testSmokeTest.sh

View file

@ -1,8 +1,5 @@
#!/bin/bash
#openssl rand -base64 32 | tr -d /=+ | cut -c -16
./setupSamsungGauntlet.sh
./testSamsungGauntlet.sh
./teardownSamsungGauntlet.sh

View file

@ -1,7 +1,7 @@
module "ci-cluster" {
source = "../../.modules/featurebase-cluster"
cluster_prefix = "smoke"
cluster_prefix = var.cluster_prefix
region = var.region
profile = var.profile
fb_data_node_type = "m6g.large"

View file

@ -11,4 +11,4 @@ variable "profile" {
variable "gitlab_token" {
description = "The API token for taking to Gitlab API - expected to come from an env variable."
type = string
}
}

View file

@ -11,4 +11,4 @@ variable "profile" {
variable "gitlab_token" {
description = "The API token for taking to Gitlab API - expected to come from an env variable."
type = string
}
}