Files
unkinben a00affbf46
ci/woodpecker/pr/pre-commit Pipeline failed
ci/woodpecker/pr/plan Pipeline failed
feat: initial radarr terraform configuration
2026-06-28 22:17:12 +10:00

33 lines
665 B
HCL

generate "backend" {
path = "backend.tf"
if_exists = "overwrite"
contents = <<EOF
provider "radarr" {
url = "https://${path_relative_to_include()}"
api_key = var.radarr_api_key
}
variable "radarr_api_key" {
type = string
sensitive = true
}
terraform {
backend "consul" {
address = "https://consul.service.consul"
path = "infra/terraform/radarr/${path_relative_to_include()}/state"
scheme = "https"
lock = true
ca_file = "/etc/pki/tls/certs/ca-bundle.crt"
}
required_version = ">= 1.10"
required_providers {
radarr = {
source = "devopsarr/radarr"
version = "2.3.5"
}
}
}
EOF
}