Skip to content

Commit ac255ca

Browse files
fix: update bin/setup to configure needed variables for gcp stage3 (#162)
1 parent e0a6923 commit ac255ca

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

bin/setup

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ if test -e ${__root}/config.yaml; then
8181
__dmtrd_consumer_name=$(grep ^dmtrd_consumer_name: ${__root}/config.yaml | awk '{print $2}')
8282
__dmtrd_consumer_monitor_name=$(grep ^dmtrd_consumer_monitor_name: ${__root}/config.yaml | awk '{print $2}')
8383
__dmtrd_consumer_cache_name=$(grep ^dmtrd_consumer_cache_name: ${__root}/config.yaml | awk '{print $2}')
84+
__provider_name=$(grep ^provider_name: ${__root}/config.yaml | awk '{print $2}')
8485
[[ -z ${__bucket} ]] && unset __bucket
8586
[[ -z ${__region} ]] && unset __region
8687
else
@@ -301,8 +302,9 @@ elif [[ ${__cloud} == gcp ]]; then
301302
sed -e 's:^# ::' \
302303
-e "s#aws#${__cloud}#" \
303304
-e "s:eyJ...:${__cloudflared_token}:" \
304-
-e "s:dmtr-cluster:${__cluster_name}:" \
305+
-e "s:dmtr-cluster:${__dmtrd_cluster_id}:" \
305306
-e "s#some-context#gcp-${__cluster_name}#" \
307+
-e "s#some-provider#${__provider_name}#" \
306308
env.auto.tfvars.example > env.auto.tfvars
307309
fi
308310
terraform init

stage3/env.auto.tfvars.example

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# cloud_provider = "aws"
22
# cloudflared_token = "eyJ..."
33
# cluster_name = "dmtr-cluster"
4+
# provider_name = "some-provider"
45
# k8s_context = "some-context"
6+
# enable_cardano_node = false
7+
# enable_cardano_ogmios = false
8+
# enable_cardano_kupo = false
9+
# enable_cardano_utxorpc = false

0 commit comments

Comments
 (0)