aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorThomas Hipp <thipp@suse.de>2017-09-19 09:40:05 +0200
committerAlvaro <alvaro.saurin@gmail.com>2017-09-22 13:08:06 +0200
commitdbe46f9773fb4735ff8c53367ff483ffdfc0d566 (patch)
tree3090516166cda52cd005dca2f7ed01e97bd88aa8 /website
parent5dc5400f354238a7b6df72b8ae84d2ef45339914 (diff)
downloadterraform-provider-libvirt-dbe46f9773fb4735ff8c53367ff483ffdfc0d566.tar
terraform-provider-libvirt-dbe46f9773fb4735ff8c53367ff483ffdfc0d566.tar.gz
update Terraform and Go version
This updates Terraform to the latest version. Travis will build with go1.9 from now on, since Terraform > 0.10.2 doesn't support go1.8. Glide was run with `--strip-vendor` which removes a lot of unnecessary files. Tests and Docs regarding `ignition` have been updated. This resolves #194. Signed-off-by: Thomas Hipp <thipp@suse.de>
Diffstat (limited to 'website')
-rw-r--r--website/docs/r/coreos_ignition.html.markdown14
1 files changed, 7 insertions, 7 deletions
diff --git a/website/docs/r/coreos_ignition.html.markdown b/website/docs/r/coreos_ignition.html.markdown
index cac00305..0805f5c7 100644
--- a/website/docs/r/coreos_ignition.html.markdown
+++ b/website/docs/r/coreos_ignition.html.markdown
@@ -42,27 +42,27 @@ Any change of the above fields will cause a new resource to be created.
## Integration with Ignition provider
The `libvirt_ignition` resource can be integrated with terraform
-[Ignition Provider](/docs/providers/ignition/index.html).
+[Ignition Provider](https://www.terraform.io/docs/providers/ignition/index.html).
An example where a terraform ignition provider object is used:
```hcl
-# Systemd unit resource containing the unit definition
-resource "ignition_systemd_unit" "example" {
+# Systemd unit data source containing the unit definition
+data "ignition_systemd_unit" "example" {
name = "example.service"
content = "[Service]\nType=oneshot\nExecStart=/usr/bin/echo Hello World\n\n[Install]\nWantedBy=multi-user.target"
}
-# Ignition config include the previous defined systemd unit resource
-resource "ignition_config" "example" {
+# Ignition config include the previous defined systemd unit data source
+data "ignition_config" "example" {
systemd = [
- "${ignition_systemd_unit.example.id}",
+ "${data.ignition_systemd_unit.example.id}",
]
}
resource "libvirt_ignition" "ignition" {
name = "ignition"
- content = "${ignition_config.example.rendered}"
+ content = "${data.ignition_config.example.rendered}"
}
resource "libvirt_domain" "my_machine" {