2019-01-16 10:22:44 -08:00
|
|
|
locals {
|
|
|
|
context_variables = {
|
|
|
|
"staging" = {
|
2019-03-07 12:29:43 -08:00
|
|
|
env = "staging"
|
|
|
|
create_mainnet = 1
|
|
|
|
create_testnet = 0
|
|
|
|
create_misc = 0
|
2019-01-16 10:22:44 -08:00
|
|
|
}
|
|
|
|
"prod" = {
|
2019-03-07 12:29:43 -08:00
|
|
|
env = "prod"
|
|
|
|
create_mainnet = 1
|
|
|
|
create_testnet = 0
|
|
|
|
create_misc = 0
|
2019-01-18 14:57:15 -08:00
|
|
|
}
|
2019-03-07 12:29:43 -08:00
|
|
|
"testnet-prod" = {
|
|
|
|
env = "prod"
|
|
|
|
create_mainnet = 0
|
|
|
|
create_testnet = 1
|
|
|
|
create_misc = 0
|
2019-01-18 14:57:15 -08:00
|
|
|
}
|
2019-03-07 12:29:43 -08:00
|
|
|
"misc" = {
|
2019-07-17 15:37:05 -07:00
|
|
|
env = "prod"
|
2019-03-07 12:29:43 -08:00
|
|
|
create_mainnet = 0
|
|
|
|
create_testnet = 0
|
|
|
|
create_misc = 1
|
2019-01-16 10:22:44 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-31 07:23:30 -07:00
|
|
|
env = local.context_variables[terraform.workspace]["env"]
|
|
|
|
create_mainnet = local.context_variables[terraform.workspace]["create_mainnet"]
|
|
|
|
create_testnet = local.context_variables[terraform.workspace]["create_testnet"]
|
|
|
|
create_misc = local.context_variables[terraform.workspace]["create_misc"]
|
2019-01-16 10:22:44 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "project" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-29 11:28:40 -08:00
|
|
|
default = "satellite-api"
|
2019-01-16 10:22:44 -08:00
|
|
|
}
|
|
|
|
|
2019-01-18 14:57:15 -08:00
|
|
|
variable "name" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-18 14:57:15 -08:00
|
|
|
default = "satapi-tor"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "create_resources" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-18 14:57:15 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-06-10 06:03:30 -07:00
|
|
|
variable "target_pool" {
|
2019-06-06 07:33:01 -07:00
|
|
|
type = string
|
|
|
|
default = ""
|
2019-01-16 10:22:44 -08:00
|
|
|
}
|
|
|
|
|
2019-08-06 16:47:59 -07:00
|
|
|
variable "charge_token" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-16 10:22:44 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "host" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-02-27 12:47:01 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-01-18 14:57:15 -08:00
|
|
|
variable "onion_host" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-18 14:57:15 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-01-16 10:22:44 -08:00
|
|
|
variable "region" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-16 10:22:44 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "zone" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-16 10:22:44 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "instance_type" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = list(string)
|
2019-02-26 16:44:51 -08:00
|
|
|
default = ["", "", ""]
|
2019-01-18 14:57:15 -08:00
|
|
|
}
|
|
|
|
|
2019-01-16 10:22:44 -08:00
|
|
|
variable "timeout" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-06-13 09:01:23 -07:00
|
|
|
default = 7200
|
2019-01-16 10:22:44 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "prom_service_acct" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-16 10:22:44 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-06-13 09:01:23 -07:00
|
|
|
variable "lb_svc_acct" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-02-26 16:44:51 -08:00
|
|
|
variable "prom_allowed_source_ip" {
|
2021-08-30 11:53:40 -07:00
|
|
|
type = list(any)
|
|
|
|
default = []
|
2019-02-26 16:44:51 -08:00
|
|
|
}
|
|
|
|
|
2019-01-16 10:22:44 -08:00
|
|
|
variable "opsgenie_key" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-16 10:22:44 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-02-26 14:03:37 -08:00
|
|
|
variable "satellite_lb" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-02-26 14:03:37 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "satellite_api_lb" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-02-26 14:03:37 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "satellite_api_lb_staging" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-02-26 14:03:37 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2021-02-23 06:29:25 -08:00
|
|
|
variable "blocksat_monitoring" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-06-13 09:01:23 -07:00
|
|
|
variable "internal_ip_mainnet" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-16 10:22:44 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-06-13 09:01:23 -07:00
|
|
|
variable "internal_ip_testnet" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-01-16 10:22:44 -08:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2020-10-28 08:51:44 -07:00
|
|
|
variable "internal_ip_gossip" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2021-01-26 14:05:45 -03:00
|
|
|
variable "internal_ip_auth" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "internal_ip_btc_src" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-07-16 17:28:21 -07:00
|
|
|
variable "health_check" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-08-06 16:47:59 -07:00
|
|
|
variable "k8s_autossh_lb" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "rpcpass" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-08-12 17:55:52 -07:00
|
|
|
variable "ssh_key_net" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2020-01-03 06:36:20 -08:00
|
|
|
variable "lightning_cmd" {
|
2020-01-03 05:57:51 -08:00
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-06-13 09:01:23 -07:00
|
|
|
# Overwritten by CI
|
2019-06-03 05:36:31 -07:00
|
|
|
variable "public_bucket_url" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-09-06 11:43:25 -07:00
|
|
|
variable "private_bucket" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-06-03 05:36:31 -07:00
|
|
|
variable "letsencrypt_email" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2021-01-26 14:05:45 -03:00
|
|
|
variable "station1" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "station2" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-06-13 09:01:23 -07:00
|
|
|
variable "ionosphere_docker" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "ionosphere_sse_docker" {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2019-01-16 10:22:44 -08:00
|
|
|
# Less frequently updated images
|
|
|
|
variable "lightning_docker" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2022-01-06 08:06:32 -08:00
|
|
|
default = "blockstream/lightningd:v0.10.2"
|
2019-01-16 10:22:44 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "charge_docker" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2022-01-06 08:06:32 -08:00
|
|
|
default = "blockstream/charged:v0.4.23"
|
2019-01-16 10:22:44 -08:00
|
|
|
}
|
2019-01-18 14:57:15 -08:00
|
|
|
|
|
|
|
variable "tor_docker" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2022-01-06 08:06:32 -08:00
|
|
|
default = "blockstream/tor:0.4.6.8"
|
2019-02-13 14:36:26 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "node_exporter_docker" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2021-08-30 11:53:40 -07:00
|
|
|
default = "prom/node-exporter:v1.1.2"
|
2019-01-18 14:57:15 -08:00
|
|
|
}
|
|
|
|
|
2019-02-26 16:44:51 -08:00
|
|
|
variable "prom_docker" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2021-08-30 11:53:40 -07:00
|
|
|
default = "prom/prometheus:v2.29.1"
|
2019-02-26 16:44:51 -08:00
|
|
|
}
|
|
|
|
|
2019-01-18 14:57:15 -08:00
|
|
|
variable "gcloud_docker" {
|
2019-05-31 07:23:30 -07:00
|
|
|
type = string
|
2019-08-12 16:13:37 -07:00
|
|
|
default = "google/cloud-sdk@sha256:ce81a5731934dabf2a402412a6cd4ef5733581302053007ba7de261513bff9bd"
|
2019-01-18 14:57:15 -08:00
|
|
|
}
|
2019-05-31 07:23:30 -07:00
|
|
|
|
2019-06-03 05:36:31 -07:00
|
|
|
variable "certbot_docker" {
|
|
|
|
type = string
|
2019-08-06 16:47:59 -07:00
|
|
|
default = "blockstream/certbot-gcs@sha256:fc5d7cb31bcf04169f37cbebd74c3bde49651f79e54e1ff3c3eaf6ec47b9f6d0"
|
2019-06-03 05:36:31 -07:00
|
|
|
}
|
2019-07-29 16:40:27 -07:00
|
|
|
|
2019-08-06 16:47:59 -07:00
|
|
|
variable "autossh_docker" {
|
2020-01-02 10:58:11 -08:00
|
|
|
type = string
|
2019-08-06 16:47:59 -07:00
|
|
|
default = "blockstream/autossh@sha256:5e30a60d6ef17aeafdde63bb859238e132fadef174af4092a435bc7325430ebd"
|
|
|
|
}
|