From dbe46f9773fb4735ff8c53367ff483ffdfc0d566 Mon Sep 17 00:00:00 2001 From: Thomas Hipp Date: Tue, 19 Sep 2017 09:40:05 +0200 Subject: 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 --- website/docs/r/coreos_ignition.html.markdown | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'website') 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" { -- cgit v1.2.3