Add missing controller dependency before bootkube start

* Require the controller module to be completed before starting
to remote exec bootkube start, otherwise its possible the controller
nodes were created, but not the network load balancer
This commit is contained in:
Dalton Hubble 2017-11-07 19:12:05 -08:00
parent 8eaa72c1ca
commit eabf00fbf1
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ resource "null_resource" "copy-secrets" {
# Secure copy bootkube assets to ONE controller and start bootkube to perform # Secure copy bootkube assets to ONE controller and start bootkube to perform
# one-time self-hosted cluster bootstrapping. # one-time self-hosted cluster bootstrapping.
resource "null_resource" "bootkube-start" { resource "null_resource" "bootkube-start" {
depends_on = ["module.bootkube", "module.workers", "null_resource.copy-secrets"] depends_on = ["module.controllers", "module.bootkube", "module.workers", "null_resource.copy-secrets"]
connection { connection {
type = "ssh" type = "ssh"