aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorFlavio Castelli <fcastelli@suse.com>2018-02-20 09:37:39 +0100
committerFlavio Castelli <flavio@castelli.me>2018-02-20 16:38:08 +0100
commit09834dbcf6d3353850cea0f51b4b07d811d3628d (patch)
tree9bfe565a07dc29066c24159911dd6d5bebfe5a28 /website
parente456355639d72af6ff2da2acd30ec3e914bdd996 (diff)
downloadterraform-provider-libvirt-09834dbcf6d3353850cea0f51b4b07d811d3628d.tar
terraform-provider-libvirt-09834dbcf6d3353850cea0f51b4b07d811d3628d.tar.gz
Handle keyword-less kernel params
Allow kernel params that don't have a key/value structure to be handled. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Diffstat (limited to 'website')
-rw-r--r--website/docs/r/domain.html.markdown11
1 files changed, 10 insertions, 1 deletions
diff --git a/website/docs/r/domain.html.markdown b/website/docs/r/domain.html.markdown
index ff9ab0a3..acc795b0 100644
--- a/website/docs/r/domain.html.markdown
+++ b/website/docs/r/domain.html.markdown
@@ -85,7 +85,7 @@ resource "libvirt_domain" "domain-suse" {
}
```
-* `kernel` - (Optional) The path of the initrd to boot.
+* `initrd` - (Optional) The path of the initrd to boot.
You can use it in the same way as the kernel.
@@ -102,10 +102,15 @@ resource "libvirt_domain" "domain-suse" {
cmdline {
arg1 = "value1"
arg2 = "value2"
+ "_" = "rw nosplash"
}
}
```
+Kernel params that don't have a keyword identifier can be specified using the
+special `"_"` keyword. Multiple keyword-less params have to be specified using
+the same `"_"` keyword, like in the example above.
+
Also note that the `cmd` block is actually a list of maps, so it is possible to
declare several of them by using either the literal list and map syntax as in
the following examples:
@@ -151,6 +156,10 @@ resource "libvirt_domain" "my_machine" {
}
```
+~> **Note well:** `kernel` and `initrd` have to be specified at the same time; `cmdline`
+ arguments can be specified only when `kernel` and `initrd` have been defined.
+ Otherwise libvirt will refuse to start the domain.
+
### UEFI images
Some extra arguments are also provided for using UEFI images: