Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87ef64d

Browse files
committed
chore: remove boot-disk-readonly.xsl
1 parent 35b81bc commit 87ef64d

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

libvirt-ubuntu/boot-disk-readonly.xsl

Lines changed: 0 additions & 21 deletions
This file was deleted.

libvirt-ubuntu/libvirt.tf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,6 @@ resource "libvirt_domain" "main" {
111111
network_name = "default"
112112
#wait_for_lease = true
113113
}
114-
115-
# We use a XSL Transform file to modify the VM's XML definition to set the boot disk to be readonly
116-
# Otherwise, cloud-init will ignore the newly modified cloud-init disk and the Coder agent will use an outdated token
117-
# Also, we don't want the end users to be able to write to this
118-
# NOTE: will remove this later, this actually breaks cloud-init
119-
#xml {
120-
# xslt = templatefile("boot-disk-readonly.xsl", {
121-
# disk_name = libvirt_volume.boot.name
122-
# })
123-
#}
124114
}
125115

126116
resource "coder_metadata" "libvirt_domain_main" {

0 commit comments

Comments
 (0)