Files
unkinben 40c1366f38
ci/woodpecker/pr/pre-commit Pipeline failed
ci/woodpecker/pr/plan Pipeline failed
feat: initial prowlarr terraform configuration
2026-06-28 22:14:21 +10:00

33 lines
677 B
HCL

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