Refactor GCP to remove controller internal module

* Remove the controller internal module to align with
other platforms and since its not a supported use case
This commit is contained in:
Dalton Hubble
2018-04-11 23:19:35 -07:00
parent 9bb3de5327
commit 5035d56db2
11 changed files with 51 additions and 157 deletions

View File

@ -4,7 +4,7 @@ resource "null_resource" "copy-controller-secrets" {
connection {
type = "ssh"
host = "${element(module.controllers.ipv4_public, count.index)}"
host = "${element(local.controllers_ipv4_public, count.index)}"
user = "core"
timeout = "15m"
}
@ -65,14 +65,14 @@ resource "null_resource" "copy-controller-secrets" {
resource "null_resource" "bootkube-start" {
depends_on = [
"module.bootkube",
"module.controllers",
"module.workers",
"google_dns_record_set.controllers",
"null_resource.copy-controller-secrets",
]
connection {
type = "ssh"
host = "${element(module.controllers.ipv4_public, 0)}"
host = "${element(local.controllers_ipv4_public, 0)}"
user = "core"
timeout = "15m"
}