infrastructure/variables.tf

119 lines
2 KiB
Terraform
Raw Normal View History

2024-09-25 11:23:52 +00:00
variable "backend_access_key" {
sensitive = true
}
variable "backend_secret_key" {
sensitive = true
}
variable "backend_endpoint" {
sensitive = false
}
variable "backend_region" {
sensitive = false
}
variable "backend_bucket" {
sensitive = false
}
variable "hcloud_token" {
sensitive = true
}
variable "ovh_application_key" {
sensitive = true
}
variable "ovh_application_secret" {
sensitive = true
}
variable "ovh_consumer_key" {
sensitive = true
}
variable "scaleway_organization_id" {
sensitive = true
}
variable "scaleway_project_id" {
sensitive = true
}
variable "scaleway_access_key" {
sensitive = true
}
variable "scaleway_secret_key" {
sensitive = true
}
variable "tailscale_api_key" {
sensitive = true
}
variable "tailscale_tailnet" {
sensitive = false
}
variable "service_buckets" {
type = map(object({
name = string
bucket = string
}))
2024-09-26 23:51:58 +00:00
default = {
"linkwarden" = {
name = "linkwarden"
bucket = "linkwarden.serguzim.me"
},
"forgejo" = {
name = "forgejo"
bucket = "forgejo.serguzim.me"
}
}
2024-09-25 11:23:52 +00:00
}
variable "hosts" {
type = map(object({
hostname = string
rdns = string
provider = string
ipv4_address = optional(string)
ipv6_address = optional(string)
image = optional(string)
server_type = optional(string)
datacenter = optional(string)
}))
2024-09-26 23:51:58 +00:00
default = {
"node001" = {
hostname = "node001"
rdns = "node001.serguzim.net"
provider = "contabo"
ipv4_address = "144.91.106.67",
ipv6_address = "2a02:c207:2051:6620::1"
},
"node002" = {
hostname = "node002"
rdns = "node002.serguzim.net"
provider = "contabo"
ipv4_address = "62.171.181.192"
ipv6_address = "2a02:c207:2036:6681::1"
},
"node003" = {
hostname = "node003"
rdns = "mail.serguzim.me"
provider = "hetzner"
image = "debian-12"
server_type = "cx32"
datacenter = "fsn1-dc14"
},
}
2024-09-25 11:23:52 +00:00
}