mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-22 21:45:19 +01:00
update instance_types + don't always refresh different modules
This commit is contained in:
parent
27c7df9e4c
commit
910a73d282
3 changed files with 9 additions and 5 deletions
|
@ -40,7 +40,7 @@ module "blc-mainnet" {
|
||||||
# CI vars
|
# CI vars
|
||||||
region = var.region
|
region = var.region
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
instance_type = var.instance_type[0]
|
instance_type = var.instance_type[1]
|
||||||
timeout = var.timeout
|
timeout = var.timeout
|
||||||
prom_service_acct = var.prom_service_acct
|
prom_service_acct = var.prom_service_acct
|
||||||
opsgenie_key = var.opsgenie_key
|
opsgenie_key = var.opsgenie_key
|
||||||
|
@ -75,7 +75,7 @@ module "blc-testnet" {
|
||||||
# CI vars
|
# CI vars
|
||||||
region = var.region
|
region = var.region
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
instance_type = var.instance_type[0]
|
instance_type = var.instance_type[1]
|
||||||
timeout = var.timeout
|
timeout = var.timeout
|
||||||
prom_service_acct = var.prom_service_acct
|
prom_service_acct = var.prom_service_acct
|
||||||
opsgenie_key = var.opsgenie_key
|
opsgenie_key = var.opsgenie_key
|
||||||
|
@ -106,7 +106,7 @@ module "lb" {
|
||||||
# CI vars
|
# CI vars
|
||||||
region = var.region
|
region = var.region
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
instance_type = var.instance_type[1]
|
instance_type = var.instance_type[0]
|
||||||
host = var.host
|
host = var.host
|
||||||
timeout = var.timeout
|
timeout = var.timeout
|
||||||
prom_service_acct = var.prom_service_acct
|
prom_service_acct = var.prom_service_acct
|
||||||
|
@ -139,7 +139,7 @@ module "tor" {
|
||||||
# CI vars
|
# CI vars
|
||||||
region = var.region
|
region = var.region
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
instance_type = var.instance_type[1]
|
instance_type = var.instance_type[0]
|
||||||
onion_host = var.onion_host
|
onion_host = var.onion_host
|
||||||
prom_service_acct = var.prom_service_acct
|
prom_service_acct = var.prom_service_acct
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,7 @@ module "prometheus" {
|
||||||
# CI vars
|
# CI vars
|
||||||
region = var.region
|
region = var.region
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
instance_type = var.instance_type[2]
|
instance_type = var.instance_type[1]
|
||||||
prom_allowed_source_ip = var.prom_allowed_source_ip
|
prom_allowed_source_ip = var.prom_allowed_source_ip
|
||||||
opsgenie_key = var.opsgenie_key
|
opsgenie_key = var.opsgenie_key
|
||||||
prom_service_acct = var.prom_service_acct
|
prom_service_acct = var.prom_service_acct
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
data "google_compute_network" "default" {
|
data "google_compute_network" "default" {
|
||||||
name = "default"
|
name = "default"
|
||||||
project = var.project
|
project = var.project
|
||||||
|
count = var.create_resources
|
||||||
}
|
}
|
||||||
|
|
||||||
data "template_file" "prometheus" {
|
data "template_file" "prometheus" {
|
||||||
template = file("${path.module}/cloud-init/prometheus.yml")
|
template = file("${path.module}/cloud-init/prometheus.yml")
|
||||||
|
count = var.create_resources
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
prom_docker = var.prom_docker
|
prom_docker = var.prom_docker
|
||||||
|
@ -17,6 +19,7 @@ data "template_file" "prometheus" {
|
||||||
data "template_cloudinit_config" "prometheus" {
|
data "template_cloudinit_config" "prometheus" {
|
||||||
gzip = false
|
gzip = false
|
||||||
base64_encode = false
|
base64_encode = false
|
||||||
|
count = var.create_resources
|
||||||
|
|
||||||
part {
|
part {
|
||||||
content_type = "text/cloud-config"
|
content_type = "text/cloud-config"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
data "google_compute_network" "default" {
|
data "google_compute_network" "default" {
|
||||||
name = "default"
|
name = "default"
|
||||||
project = var.project
|
project = var.project
|
||||||
|
count = var.create_resources
|
||||||
}
|
}
|
||||||
|
|
||||||
data "template_file" "tor" {
|
data "template_file" "tor" {
|
||||||
|
|
Loading…
Add table
Reference in a new issue