aboutsummaryrefslogtreecommitdiff
path: root/terraform/arius-kvm/main.tf
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-08-18 19:25:36 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2021-08-18 19:25:36 +0200
commit6bee445a2ab132e778276ca21c76770de43ad17d (patch)
treed7ad66f8cece68efa5036e2e1cbb73fc8edd65b9 /terraform/arius-kvm/main.tf
parentf0803cb1b11ac5f4c8bd30d0dea8ceccb7a72602 (diff)
downloadinfra-6bee445a2ab132e778276ca21c76770de43ad17d.tar.gz
infra-6bee445a2ab132e778276ca21c76770de43ad17d.tar.bz2
infra-6bee445a2ab132e778276ca21c76770de43ad17d.tar.xz
infra-6bee445a2ab132e778276ca21c76770de43ad17d.zip
terraform/arius-kvm
Diffstat (limited to 'terraform/arius-kvm/main.tf')
-rw-r--r--terraform/arius-kvm/main.tf21
1 files changed, 21 insertions, 0 deletions
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"
+}