From de9c0019fa0b0e9e24f57e9c44a84f1ca266617c Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 26 Apr 2023 16:07:06 +0200 Subject: [PATCH] remove data libvirt volume pool --- ansible/atlas.yml | 2 +- terraform/main.tf | 12 +----------- terraform/set_volume_pool_mode_open.xsl | 19 ------------------- 3 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 terraform/set_volume_pool_mode_open.xsl diff --git a/ansible/atlas.yml b/ansible/atlas.yml index dabe0ab..bb07522 100644 --- a/ansible/atlas.yml +++ b/ansible/atlas.yml @@ -36,7 +36,7 @@ file: path: /data state: directory - mode: og=rw + mode: og=rwx roles: - {role: setup-apt, tags: setup-apt} diff --git a/terraform/main.tf b/terraform/main.tf index 8a2cbce..24a1bd4 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -12,7 +12,7 @@ terraform { } provider "libvirt" { - uri = "qemu+ssh://root@atlas.lan/system" + uri = "qemu+ssh://root@atlas.hyp/system" } resource "libvirt_pool" "iso" { @@ -33,16 +33,6 @@ resource "libvirt_pool" "init" { path = "/kvm/init" } -resource "libvirt_pool" "data" { - name = "data" - type = "dir" - path = "/kvm/data" - - xml { - xslt = file("set_volume_pool_mode_open.xsl") - } -} - resource "libvirt_volume" "ubuntu_jammy" { name = "ubuntu-jammy.img" pool = "iso" diff --git a/terraform/set_volume_pool_mode_open.xsl b/terraform/set_volume_pool_mode_open.xsl deleted file mode 100644 index 1f53bf9..0000000 --- a/terraform/set_volume_pool_mode_open.xsl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - 0755 - - - - -