2021-12-24 18:20:22 +01:00
|
|
|
# Configure TVL resources hosted with GleSYS.
|
|
|
|
#
|
|
|
|
# Most importantly:
|
|
|
|
# - all of our DNS
|
|
|
|
# - object storage (e.g. backups)
|
|
|
|
|
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
glesys = {
|
|
|
|
source = "depot/glesys"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "glesys" {
|
|
|
|
userid = "cl26117" # generated by GleSYS
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "glesys_objectstorage_instance" "tvl-backups" {
|
|
|
|
description = "tvl-backups"
|
|
|
|
datacenter = "dc-sto1"
|
|
|
|
}
|
2021-12-24 18:29:31 +01:00
|
|
|
|
|
|
|
resource "glesys_objectstorage_instance" "tvl-state" {
|
|
|
|
description = "tvl-state"
|
|
|
|
datacenter = "dc-sto1"
|
|
|
|
|
|
|
|
lifecycle {
|
|
|
|
ignore_changes = [ accesskey ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "glesys_objectstorage_credential" "terraform-state" {
|
|
|
|
instanceid = glesys_objectstorage_instance.tvl-state.id
|
|
|
|
description = "key for terraform state"
|
|
|
|
}
|