From ae7eaa5445cb869a94ceb43bdfc91f093ec6e9e9 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Mon, 20 Aug 2018 15:10:46 -0400 Subject: [PATCH] Create a dependancy between the libvirt network and virsh command adding a dns record Since we used the variable name in both places terraform tried to run both at the same time. We could have created an explicit dep, or done this via an implicit dep. --- steps/topology/libvirt/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steps/topology/libvirt/main.tf b/steps/topology/libvirt/main.tf index 1b2deb29523..d73b0490744 100644 --- a/steps/topology/libvirt/main.tf +++ b/steps/topology/libvirt/main.tf @@ -34,6 +34,6 @@ locals { # This is currently limited to the first worker, due to an issue with net-update, even though libvirt supports multiple a-records resource "null_resource" "console_dns" { provisioner "local-exec" { - command = "virsh -c ${var.tectonic_libvirt_uri} net-update ${var.tectonic_libvirt_network_name} add dns-host \"${var.tectonic_cluster_name}\" --live --config" + command = "virsh -c ${var.tectonic_libvirt_uri} net-update ${libvirt_network.tectonic_net.name} add dns-host \"${var.tectonic_cluster_name}\" --live --config" } }