mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-07-16 02:31:34 +02:00
Fix implicit map assignments to be explicit
* Terraform v0.12 will require map assignments be explicit, part of v0.12 readiness
This commit is contained in:
@ -36,7 +36,7 @@ resource "google_compute_instance" "controllers" {
|
||||
machine_type = "${var.controller_type}"
|
||||
min_cpu_platform = "Intel Haswell"
|
||||
|
||||
metadata {
|
||||
metadata = {
|
||||
user-data = "${element(data.ct_config.controller-ignitions.*.rendered, count.index)}"
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ data "template_file" "etcds" {
|
||||
count = "${var.controller_count}"
|
||||
template = "etcd$${index}=https://$${cluster_name}-etcd$${index}.$${dns_zone}:2380"
|
||||
|
||||
vars {
|
||||
vars = {
|
||||
index = "${count.index}"
|
||||
cluster_name = "${var.cluster_name}"
|
||||
dns_zone = "${var.dns_zone}"
|
||||
|
@ -28,7 +28,7 @@ resource "google_compute_instance_template" "worker" {
|
||||
machine_type = "${var.machine_type}"
|
||||
min_cpu_platform = "Intel Haswell"
|
||||
|
||||
metadata {
|
||||
metadata = {
|
||||
user-data = "${data.ct_config.worker-ignition.rendered}"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user