tf-ubuntu-lineageos/libvirt.tf
2021-07-08 14:15:31 +02:00

35 lines
528 B
HCL

terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.10"
}
}
}
provider "libvirt" {
uri = "qemu:///system"
}
resource "libvirt_domain" "terraform_libvirt" {
name = "terraform_libvirt"
console {
type = "pty"
target_type = "serial"
target_port = "0"
}
console {
type = "pty"
target_type = "virtio"
target_port = "1"
}
graphics {
type = "spice"
listen_type = "address"
autoport = true
}
}