summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorThomas Hipp <thipp@suse.de>2017-12-01 13:29:00 +0100
committerThomas Hipp <thipp@suse.de>2017-12-01 15:23:31 +0100
commit9be42d2996fd6acd34b1bda8a4245d3aa7544135 (patch)
tree182fc4aa0093693c723f967fd68748e3bf0c302b /website
parent380076c1943ebd10c5e5f54ad4ac751a736c5c1f (diff)
downloadterraform-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 'website')
-rw-r--r--website/docs/r/domain.html.markdown8
1 files changed, 6 insertions, 2 deletions
diff --git a/website/docs/r/domain.html.markdown b/website/docs/r/domain.html.markdown
index 01ed1fc3..ff9ab0a3 100644
--- a/website/docs/r/domain.html.markdown
+++ b/website/docs/r/domain.html.markdown
@@ -237,9 +237,9 @@ The `disk` block supports:
* `volume_id` - (Optional) The volume id to use for this disk.
* `url` - (Optional) The http url to use as the block device for this disk (read-only)
+* `file` - (Optional) The filename to use as the block device for this disk (read-only)
-While both `volume_id` and `url` are optional, it is intended that you use either a volume or a
-url.
+While `volume_id`, `url` and `file` are optional, it is intended that you use one of them.
* `scsi` - (Optional) Use a scsi controller for this disk. The controller
model is set to `virtio-scsi`
@@ -268,6 +268,10 @@ resource "libvirt_domain" "domain1" {
disk {
url = "http://foo.com/install.iso"
}
+
+ disk {
+ file = "/absolute/path/to/disk.iso"
+ }
}
```