aboutsummaryrefslogtreecommitdiff
path: root/docs/providers
diff options
context:
space:
mode:
authorDuncan Mac-Vicar P <dmacvicar@suse.de>2016-03-06 23:34:19 +0100
committerDuncan Mac-Vicar P <dmacvicar@suse.de>2016-03-06 23:34:19 +0100
commit42cdfa92fb562195e94093c0077153433fc4177e (patch)
tree64ed2be88810478915b7879a4da6a01ce047880b /docs/providers
parent372ede62452a0a11cc2227738a90a478e82d37da (diff)
downloadterraform-provider-libvirt-42cdfa92fb562195e94093c0077153433fc4177e.tar
terraform-provider-libvirt-42cdfa92fb562195e94093c0077153433fc4177e.tar.gz
implement a volume provider
Diffstat (limited to 'docs/providers')
-rw-r--r--docs/providers/libvirt/r/volume.html.markdown37
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/providers/libvirt/r/volume.html.markdown b/docs/providers/libvirt/r/volume.html.markdown
new file mode 100644
index 00000000..52ffd361
--- /dev/null
+++ b/docs/providers/libvirt/r/volume.html.markdown
@@ -0,0 +1,37 @@
+---
+layout: "libvirt"
+page_title: "Libvirt: libvirt_volume"
+sidebar_current: "docs-libvirt-volume"
+description: |-
+ Manages a storage volume in libvirt
+---
+
+# libvirt\_volume
+
+Manages a storage volume in libvirt. For more information see
+[the official documentation](https://libvirt.org/formatstorage.html).
+
+## Example Usage
+
+```
+resource "libvirt_volume" "opensuse_leap" {
+ name = "opensuse_leap"
+ source = "http://download.opensuse.org/repositories/Cloud:/Images:/Leap_42.1/images/openSUSE-Leap-42.1-OpenStack.x86_64.qcow2"
+}
+
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `name` - (Required) A unique name for the resource, required by libvirt.
+ Changing this forces a new resource to be created.
+* `pool` - (Optional) The pool where the resource will be created.
+ If not given, the `default` pool will be used.
+* `source` - (Optional) If specified, the image will be retrieved from this URL and uploaded into
+ libvirt. Only remote HTTP urls are supported for now.
+* `size` - (Optional) The size of the volume.
+ If `source` is specified, `size` will be set to the source image file size.
+
+