aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Mac-Vicar P <dmacvicar@suse.de>2016-03-13 00:05:19 +0100
committerDuncan Mac-Vicar P <dmacvicar@suse.de>2016-03-13 00:05:19 +0100
commite90ebeb14f79f0f79e351f80ccb6f4b27186f4a3 (patch)
tree102040251cdc24b108f6e283727667a416fe0483
parentf34b07af9420f2e4c162b6b2e6308ef0027f7e7a (diff)
downloadterraform-provider-libvirt-e90ebeb14f79f0f79e351f80ccb6f4b27186f4a3.tar
terraform-provider-libvirt-e90ebeb14f79f0f79e351f80ccb6f4b27186f4a3.tar.gz
fix count example
-rw-r--r--examples/count/libvirt.tf8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/count/libvirt.tf b/examples/count/libvirt.tf
index a1911100..bab7b3fe 100644
--- a/examples/count/libvirt.tf
+++ b/examples/count/libvirt.tf
@@ -8,13 +8,13 @@ resource "libvirt_volume" "opensuse_leap" {
}
resource "libvirt_volume" "volume" {
- name = "volume"
+ name = "volume-${count.index}"
base_volume = "${libvirt_volume.opensuse_leap.id}"
-# count = 4
+ count = 4
}
-resource "libvirt_domain" "terraform_test" {
- name = "terraform_test"
+resource "libvirt_domain" "domain" {
+ name = "domain-${count.index}"
disk {
volume_id = "${element(libvirt_volume.volume.*.id, count.index)}"
}