ebd701b221
Remove a workaround for a GleSYS provider bug that was fixed in the last release. Change-Id: Ibd25de0b4dcccd781518d5d0ae1c75d296f6b05f Reviewed-on: https://cl.tvl.fyi/c/depot/+/5845 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
68 lines
1.4 KiB
HCL
68 lines
1.4 KiB
HCL
# Configure TVL resources hosted with GleSYS.
|
|
#
|
|
# Most importantly:
|
|
# - all of our DNS
|
|
# - object storage (e.g. backups)
|
|
|
|
terraform {
|
|
required_providers {
|
|
glesys = {
|
|
source = "depot/glesys"
|
|
}
|
|
}
|
|
|
|
backend "s3" {
|
|
endpoint = "https://objects.dc-sto1.glesys.net"
|
|
bucket = "tvl-state"
|
|
key = "terraform/tvl-glesys"
|
|
region = "glesys"
|
|
|
|
skip_credentials_validation = true
|
|
skip_region_validation = true
|
|
skip_metadata_api_check = true
|
|
}
|
|
}
|
|
|
|
provider "glesys" {
|
|
userid = "cl26117" # generated by GleSYS
|
|
}
|
|
|
|
resource "glesys_objectstorage_instance" "tvl-backups" {
|
|
description = "tvl-backups"
|
|
datacenter = "dc-sto1"
|
|
}
|
|
|
|
resource "glesys_objectstorage_instance" "tvl-state" {
|
|
description = "tvl-state"
|
|
datacenter = "dc-sto1"
|
|
}
|
|
|
|
resource "glesys_objectstorage_credential" "terraform-state" {
|
|
instanceid = glesys_objectstorage_instance.tvl-state.id
|
|
description = "key for terraform state"
|
|
}
|
|
|
|
resource "glesys_objectstorage_credential" "litestream" {
|
|
instanceid = glesys_objectstorage_instance.tvl-state.id
|
|
description = "key for litestream"
|
|
}
|
|
|
|
variable "whitby_ipv4" {
|
|
type = string
|
|
default = "49.12.129.211"
|
|
}
|
|
|
|
variable "whitby_ipv6" {
|
|
type = string
|
|
default = "2a01:4f8:242:5b21:0:feed:edef:beef"
|
|
}
|
|
|
|
variable "sanduny_ipv4" {
|
|
type = string
|
|
default = "85.119.82.231"
|
|
}
|
|
|
|
variable "sanduny_ipv6" {
|
|
type = string
|
|
default = "2001:ba8:1f1:f109::feed:edef:beef"
|
|
}
|