Add temporary variables for multi-nic testing

* Accept ordered lists of controller and worker networkd configs
* Do not rely on these variables. They will be replaced with a
cleaner mechanism at a future date
This commit is contained in:
Dalton Hubble
2017-10-16 00:39:58 -07:00
parent 377e14c80b
commit fc22f04dd6
5 changed files with 23 additions and 3 deletions

View File

@ -87,6 +87,7 @@ data "template_file" "controller-configs" {
etcd_initial_cluster = "${join(",", formatlist("%s=https://%s:2380", var.controller_names, var.controller_domains))}"
k8s_dns_service_ip = "${module.bootkube.kube_dns_service_ip}"
ssh_authorized_key = "${var.ssh_authorized_key}"
networkd_content = "${element(var.controller_networkds, count.index)}"
}
}
@ -106,5 +107,6 @@ data "template_file" "worker-configs" {
domain_name = "${element(var.worker_domains, count.index)}"
k8s_dns_service_ip = "${module.bootkube.kube_dns_service_ip}"
ssh_authorized_key = "${var.ssh_authorized_key}"
networkd_content = "${element(var.worker_networkds, count.index)}"
}
}