khuedoan-homelab/infra/lxd/terraform.tf

36 lines
537 B
Terraform
Raw Normal View History

2021-02-12 21:24:13 +07:00
terraform {
backend "etcdv3" {
2021-02-12 21:51:19 +07:00
endpoints = ["localhost:2379"]
2021-02-12 21:24:13 +07:00
lock = true
}
2021-02-12 21:51:19 +07:00
required_providers {
lxd = {
source = "terraform-lxd/lxd"
version = "1.5.0"
}
2021-02-13 12:49:59 +07:00
rke = {
source = "rancher/rke"
version = "1.1.7"
}
2021-02-12 21:51:19 +07:00
}
}
provider "lxd" {
generate_client_certificates = true
accept_remote_certificate = true
lxd_remote {
name = "local"
scheme = "https"
2021-02-13 18:54:46 +07:00
address = "localhost"
2021-02-12 21:51:19 +07:00
password = "1"
default = true
}
2021-02-12 21:24:13 +07:00
}
2021-02-13 12:49:59 +07:00
provider "rke" {
debug = true
}