diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-08-18 19:25:36 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-08-18 19:25:36 +0200 |
commit | 6bee445a2ab132e778276ca21c76770de43ad17d (patch) | |
tree | d7ad66f8cece68efa5036e2e1cbb73fc8edd65b9 /terraform/arius-kvm/main.tf | |
parent | f0803cb1b11ac5f4c8bd30d0dea8ceccb7a72602 (diff) | |
download | infra-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.tf | 21 |
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" +} |