remove data libvirt volume pool

This commit is contained in:
Pim Kunis 2023-04-26 16:07:06 +02:00
parent c63c206b75
commit de9c0019fa
3 changed files with 2 additions and 31 deletions

View file

@ -36,7 +36,7 @@
file: file:
path: /data path: /data
state: directory state: directory
mode: og=rw mode: og=rwx
roles: roles:
- {role: setup-apt, tags: setup-apt} - {role: setup-apt, tags: setup-apt}

View file

@ -12,7 +12,7 @@ terraform {
} }
provider "libvirt" { provider "libvirt" {
uri = "qemu+ssh://root@atlas.lan/system" uri = "qemu+ssh://root@atlas.hyp/system"
} }
resource "libvirt_pool" "iso" { resource "libvirt_pool" "iso" {
@ -33,16 +33,6 @@ resource "libvirt_pool" "init" {
path = "/kvm/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" { resource "libvirt_volume" "ubuntu_jammy" {
name = "ubuntu-jammy.img" name = "ubuntu-jammy.img"
pool = "iso" pool = "iso"

View file

@ -1,19 +0,0 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="/pool/target">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
<permissions>
<mode>0755</mode>
</permissions>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>