packet: Fix terraform formatting
@@ -94,12 +94,10 @@ resource "null_resource" "bootkube-start" {
}
}
-
data "template_file" "controller_host_endpoints" {
count = "${var.controller_count}"
template = "${file("${path.module}/calico/controller_host_endpoints.yaml.tmpl")}"
-
vars {
node_name = "${element(packet_device.controllers.*.hostname, count.index)}"
}
@@ -116,6 +114,7 @@ data "template_file" "worker_host_endpoints" {
data "template_file" "host_protection_policy" {
template = "${file("${path.module}/calico/calico-policy.yaml.tmpl")}"
+
vars = {
controller_host_endpoints = "${join("\n", data.template_file.controller_host_endpoints.*.rendered)}"
worker_host_endpoints = "${join("\n", data.template_file.worker_host_endpoints.*.rendered)}"
