Skip to content

Commit

Permalink
steps/infra/libvirt: use the upstream dns hosts implementation
Browse files Browse the repository at this point in the history
It is slightly different than the crawford fork.
  • Loading branch information
eparis committed Sep 6, 2018
1 parent 13a7dbb commit 7e29113
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Documentation/dev/libvirt-howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ echo server=/tt.testing/192.168.124.1 | sudo tee /etc/NetworkManager/dnsmasq.d/t
1. Make sure you have the `virsh` binary installed: `sudo dnf install libvirt-client libvirt-devel`
2. Install the libvirt terraform provider:
```sh
GOBIN=~/.terraform.d/plugins go get github.com/crawford/terraform-provider-libvirt
GOBIN=~/.terraform.d/plugins go get -u github.com/dmacvicar/terraform-provider-libvirt
```

#### 1.9 Cache terrafrom plugins (optional, but makes subsequent runs a bit faster)
Expand Down
16 changes: 8 additions & 8 deletions steps/infra/libvirt/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ resource "libvirt_network" "tectonic_net" {
]

dns = [{
local_only = true,
local_only = true

hosts = ["${flatten(list(
data.libvirt_network_dns_host_template.bootstrap.*.rendered,
data.libvirt_network_dns_host_template.masters.*.rendered,
data.libvirt_network_dns_host_template.etcds.*.rendered,
data.libvirt_network_dns_host_template.workers.*.rendered,
))}"]
}]

dns_host = ["${flatten(list(
data.libvirt_network_dns_host_template.bootstrap.*.rendered,
data.libvirt_network_dns_host_template.masters.*.rendered,
data.libvirt_network_dns_host_template.etcds.*.rendered,
data.libvirt_network_dns_host_template.workers.*.rendered,
))}"]

autostart = true
}

Expand Down

0 comments on commit 7e29113

Please sign in to comment.