From 0da7757ef441e7ebf8f5ad2bf1e67775dfd36e61 Mon Sep 17 00:00:00 2001 From: Sean Swehla Date: Sat, 24 Feb 2018 19:22:57 -0500 Subject: [PATCH] Pass Digital Ocean ssh_fingerprints as a list * Fix digital-ocean module to pass ssh_fingerprints as a list since the module accepts a list --- CHANGES.md | 1 + digital-ocean/container-linux/kubernetes/controllers.tf | 2 +- digital-ocean/container-linux/kubernetes/workers.tf | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a3a7adeb..d745f26d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -18,6 +18,7 @@ Notable changes between versions. #### Digital Ocean * Add kubelet `--volume-plugin-dir` flag to allow flexvolume plugins ([#142](https://github.com/poseidon/typhoon/pull/142)) +* Fix to pass `ssh_fingerprints` as a list to droplets ([#143](https://github.com/poseidon/typhoon/pull/143)) #### Google Cloud diff --git a/digital-ocean/container-linux/kubernetes/controllers.tf b/digital-ocean/container-linux/kubernetes/controllers.tf index eae94b10..5e36562f 100644 --- a/digital-ocean/container-linux/kubernetes/controllers.tf +++ b/digital-ocean/container-linux/kubernetes/controllers.tf @@ -45,7 +45,7 @@ resource "digitalocean_droplet" "controllers" { private_networking = true user_data = "${element(data.ct_config.controller_ign.*.rendered, count.index)}" - ssh_keys = "${var.ssh_fingerprints}" + ssh_keys = ["${var.ssh_fingerprints}"] tags = [ "${digitalocean_tag.controllers.id}", diff --git a/digital-ocean/container-linux/kubernetes/workers.tf b/digital-ocean/container-linux/kubernetes/workers.tf index 51c4a7a0..4e2c67ec 100644 --- a/digital-ocean/container-linux/kubernetes/workers.tf +++ b/digital-ocean/container-linux/kubernetes/workers.tf @@ -26,7 +26,7 @@ resource "digitalocean_droplet" "workers" { private_networking = true user_data = "${data.ct_config.worker_ign.rendered}" - ssh_keys = "${var.ssh_fingerprints}" + ssh_keys = ["${var.ssh_fingerprints}"] tags = [ "${digitalocean_tag.workers.id}",