khuedoan-homelab/infra/lxd/terraform.tf
2021-02-13 12:49:59 +07:00

36 lines
540 B
HCL

terraform {
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 = "local"
scheme = "https"
address = "192.168.64.4"
password = "1"
default = true
}
}
provider "rke" {
debug = true
}