From 6bee445a2ab132e778276ca21c76770de43ad17d Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 18 Aug 2021 19:25:36 +0200 Subject: terraform/arius-kvm --- terraform/arius-kvm/main.tf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 terraform/arius-kvm/main.tf (limited to 'terraform/arius-kvm/main.tf') diff --git a/terraform/arius-kvm/main.tf b/terraform/arius-kvm/main.tf new file mode 100644 index 0000000..afe402f --- /dev/null +++ b/terraform/arius-kvm/main.tf @@ -0,0 +1,21 @@ +terraform { + required_providers { + libvirt = { + source = "dmacvicar/libvirt" + version = "0.6.10" + } + } +} + +provider "libvirt" { + # https://github.com/dmacvicar/terraform-provider-libvirt/issues/864 + # uri = "qemu+ssh://arius.vpn.trygvis.io/system" + + # rm libvirt-arius.sock; ssh -nNT -L "$(pwd)/libvirt-arius.sock:/var/run/libvirt/libvirt-sock" arius.vpn.trygvis.io + uri = "qemu+unix:///session?socket=${path.root}/libvirt-arius.sock" +} + +resource "libvirt_volume" "debian-10" { + name = "debian-10-openstack-amd64.qcow2" + source = "https://cloud.debian.org/cdimage/openstack/current-10/debian-10-openstack-amd64.qcow2" +} -- cgit v1.2.3