ansible_lxd_tests/Playbooks/files/OpenLDAP.tf

31 lines
494 B
HCL

terraform {
required_providers {
lxd = {
source = "terraform-lxd/lxd"
}
}
}
provider "lxd" {
generate_client_certificates = true
accept_remote_certificate = true
}
resource "lxd_cached_image" "focal" {
source_remote = "ubuntu"
source_image = "focal/amd64"
}
resource "lxd_container" "test1" {
name = "test1"
image = lxd_cached_image.focal.fingerprint
ephemeral = false
config = {
"boot.autostart" = true
}
limits = {
cpu = 2
}
}