diff options
Diffstat (limited to 'website/docs/r/domain.html.markdown')
-rw-r--r-- | website/docs/r/domain.html.markdown | 8 |
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" + } } ``` |