change permissions of data libvirt volume pool
This commit is contained in:
parent
d706a80721
commit
82ce487559
3 changed files with 25 additions and 0 deletions
|
@ -37,6 +37,10 @@ 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" {
|
||||
|
|
19
bootstrap/set_volume_pool_mode_open.xsl
Normal file
19
bootstrap/set_volume_pool_mode_open.xsl
Normal file
|
@ -0,0 +1,19 @@
|
|||
<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>
|
|
@ -4,3 +4,5 @@ Match User lewis
|
|||
AuthorizedPrincipalsFile /etc/ssh/lewis_principals
|
||||
ChrootDirectory /kvm/data
|
||||
ForceCommand internal-sftp
|
||||
AllowTcpForwarding no
|
||||
X11Forwarding no
|
||||
|
|
Reference in a new issue