mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 15:24:31 +07:00
21fac43e57
OpenTofu is a drop-in replacement for Terraform, so aside from changing the binary, it only needs some minor adjustments.
40 lines
691 B
HCL
40 lines
691 B
HCL
terraform {
|
|
required_version = "~> 1.7"
|
|
|
|
backend "remote" {
|
|
hostname = "app.terraform.io"
|
|
organization = "khuedoan"
|
|
|
|
workspaces {
|
|
name = "homelab-external"
|
|
}
|
|
}
|
|
|
|
required_providers {
|
|
cloudflare = {
|
|
source = "cloudflare/cloudflare"
|
|
version = "~> 4.30.0"
|
|
}
|
|
|
|
kubernetes = {
|
|
source = "hashicorp/kubernetes"
|
|
version = "~> 2.26.0"
|
|
}
|
|
|
|
http = {
|
|
source = "hashicorp/http"
|
|
version = "~> 3.4.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "cloudflare" {
|
|
email = var.cloudflare_email
|
|
api_key = var.cloudflare_api_key
|
|
}
|
|
|
|
provider "kubernetes" {
|
|
# Use KUBE_CONFIG_PATH environment variables
|
|
# Or in cluster service account
|
|
}
|