blockstream-satellite-api/terraform/variables.tf

247 lines
4.4 KiB
Terraform
Raw Normal View History

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-staging" = {
env = "staging"
create_mainnet = 0
create_testnet = 1
create_misc = 0
}
"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" = {
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
}
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
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)
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 = ""
}
variable "prom_allowed_source_ip" {
2019-05-31 07:23:30 -07:00
type = string
default = ""
}
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 = ""
}
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 = ""
}
2019-07-16 17:28:21 -07:00
variable "health_check" {
type = string
default = ""
}
2019-07-29 16:40:27 -07:00
variable "pguser" {
type = string
default = ""
}
variable "pgpass" {
type = string
default = ""
}
variable "k8s_autossh_lb" {
type = string
default = ""
}
variable "rpcpass" {
type = string
default = ""
}
variable "ssh_key_net" {
type = string
default = ""
}
2020-01-03 06:36:20 -08:00
variable "lightning_cmd" {
type = string
default = ""
}
2019-06-13 09:01:23 -07:00
# Overwritten by CI
variable "public_bucket_url" {
type = string
default = ""
}
variable "private_bucket" {
type = string
default = ""
}
variable "letsencrypt_email" {
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
default = "blockstream/lightningd@sha256:fd8fb1139fa480639670f9220ec3f9c08f64fbcd13067d930219dac521b8697d"
2019-01-16 10:22:44 -08:00
}
variable "charge_docker" {
2019-05-31 07:23:30 -07:00
type = string
2020-02-03 05:45:55 -08:00
default = "blockstream/charged@sha256:bcc5f91643f03bd97601471d335f133d75455d096054f01c15d332138a55a49c"
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
2019-07-16 17:28:21 -07:00
default = "blockstream/tor@sha256:46594b0a84f7503de70078652e7bd94f6152b7976d11779ad9f143f02508284c"
}
variable "node_exporter_docker" {
2019-05-31 07:23:30 -07:00
type = string
default = "prom/node-exporter@sha256:55302581333c43d540db0e144cf9e7735423117a733cdec27716d87254221086"
2019-01-18 14:57:15 -08:00
}
variable "prom_docker" {
2019-05-31 07:23:30 -07:00
type = string
default = "blockstream/prometheus@sha256:cab8c2359ab187aa6c9e9c7fcfcc3060b62742417030a77862c747e091d3c6d6"
}
2019-01-18 14:57:15 -08:00
variable "gcloud_docker" {
2019-05-31 07:23:30 -07:00
type = string
default = "google/cloud-sdk@sha256:ce81a5731934dabf2a402412a6cd4ef5733581302053007ba7de261513bff9bd"
2019-01-18 14:57:15 -08:00
}
2019-05-31 07:23:30 -07:00
variable "certbot_docker" {
type = string
default = "blockstream/certbot-gcs@sha256:fc5d7cb31bcf04169f37cbebd74c3bde49651f79e54e1ff3c3eaf6ec47b9f6d0"
}
2019-07-29 16:40:27 -07:00
variable "postgres_docker" {
type = string
default = "postgres@sha256:077793cc0ed31fd0568ce468d85d0843b8dea37c9ef74eb81b4ccf0fe9539e2e"
}
variable "autossh_docker" {
type = string
default = "blockstream/autossh@sha256:5e30a60d6ef17aeafdde63bb859238e132fadef174af4092a435bc7325430ebd"
}