25 lines
533 B
HCL
25 lines
533 B
HCL
generate "backend" {
|
|
path = "backend.tf"
|
|
if_exists = "overwrite"
|
|
contents = <<EOF
|
|
provider "gitea" {
|
|
base_url = "https://git.unkin.net"
|
|
cacert_file = "/etc/pki/tls/certs/ca-bundle.crt"
|
|
}
|
|
|
|
provider "woodpecker" {
|
|
server = "https://ci.k8s.syd1.au.unkin.net"
|
|
}
|
|
|
|
terraform {
|
|
backend "consul" {
|
|
address = "https://consul.service.consul"
|
|
path = "infra/terraform/git/${path_relative_to_include()}/state"
|
|
scheme = "https"
|
|
lock = true
|
|
ca_file = "/etc/pki/tls/certs/ca-bundle.crt"
|
|
}
|
|
}
|
|
EOF
|
|
}
|