Skip to content

Commit

Permalink
Merge pull request #150 from eparis/libvirt-dns-dep
Browse files Browse the repository at this point in the history
Create a dependancy between the libvirt network and virsh command adding a dns record
  • Loading branch information
openshift-merge-robot authored Aug 23, 2018
2 parents b8bf8ca + ae7eaa5 commit 27fb947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steps/topology/libvirt/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 \"<host ip='${local.first_worker_ip}'><hostname>${var.tectonic_cluster_name}</hostname></host>\" --live --config"
command = "virsh -c ${var.tectonic_libvirt_uri} net-update ${libvirt_network.tectonic_net.name} add dns-host \"<host ip='${local.first_worker_ip}'><hostname>${var.tectonic_cluster_name}</hostname></host>\" --live --config"
}
}

0 comments on commit 27fb947

Please sign in to comment.