khuedoan-homelab/infra/platform/terraform.tf

37 lines
604 B
HCL

terraform {
# TODO remote backend (etcd or minio)
# backend "etcdv3" {
# endpoints = ["localhost:2379"]
# lock = true
# }
required_providers {
lxd = {
source = "terraform-lxd/lxd"
version = "1.5.0"
}
rke = {
source = "rancher/rke"
version = "1.1.7"
}
}
}
provider "lxd" {
generate_client_certificates = true
accept_remote_certificate = true
lxd_remote {
name = "homelab"
scheme = "https"
address = var.lxd_address
password = var.lxd_password
default = true
}
}
provider "rke" {
debug = true
}