diff options
author | Thomas Hipp <thipp@suse.de> | 2017-12-01 13:29:00 +0100 |
---|---|---|
committer | Thomas Hipp <thipp@suse.de> | 2017-12-01 15:23:31 +0100 |
commit | 9be42d2996fd6acd34b1bda8a4245d3aa7544135 (patch) | |
tree | 182fc4aa0093693c723f967fd68748e3bf0c302b /libvirt/disk_def.go | |
parent | 380076c1943ebd10c5e5f54ad4ac751a736c5c1f (diff) | |
download | terraform-provider-libvirt-9be42d2996fd6acd34b1bda8a4245d3aa7544135.tar terraform-provider-libvirt-9be42d2996fd6acd34b1bda8a4245d3aa7544135.tar.gz |
support local cdroms
Local cdroms can now be added directly to the domain. See the
following example:
```hcl
resource "libvirt_domain" "test-domain" {
name = "test"
disk {
file = "path/to/file.iso"
}
}
```
Furthermore, a small Tiny Core Linux (TCL) ISO image has been added to
the testdata. This can be used for testing purposes.
Signed-off-by: Thomas Hipp <thipp@suse.de>
Diffstat (limited to 'libvirt/disk_def.go')
-rw-r--r-- | libvirt/disk_def.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libvirt/disk_def.go b/libvirt/disk_def.go index f4e4e86a..6e4cceea 100644 --- a/libvirt/disk_def.go +++ b/libvirt/disk_def.go @@ -24,21 +24,6 @@ func newDefDisk(i int) libvirtxml.DomainDisk { } } -func newCDROM() libvirtxml.DomainDisk { - return libvirtxml.DomainDisk{ - Type: "file", - Device: "cdrom", - Target: &libvirtxml.DomainDiskTarget{ - Dev: "hda", - Bus: "ide", - }, - Driver: &libvirtxml.DomainDiskDriver{ - Name: "qemu", - Type: "raw", - }, - } -} - func randomWWN(strlen int) string { const chars = "abcdef0123456789" result := make([]byte, strlen) |