mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-10 07:16:57 +07:00
37 lines
626 B
HCL
37 lines
626 B
HCL
terraform {
|
|
# TODO Generate endpoint automatically (terragrunt for variable)
|
|
backend "etcdv3" {
|
|
endpoints = ["192.168.1.29: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
|
|
}
|