Fix null_resource ordering constraints
* Ensure etcd TLS assets and kubeconfig are copied before any attempt is made to run bootkube start
This commit is contained in:
parent
10b977d54a
commit
47a9989927
|
@ -69,7 +69,7 @@ resource "null_resource" "copy-secrets" {
|
|||
# Secure copy bootkube assets to ONE controller and start bootkube to perform
|
||||
# one-time self-hosted cluster bootstrapping.
|
||||
resource "null_resource" "bootkube-start" {
|
||||
depends_on = ["module.bootkube", "null_resource.copy-secrets", "digitalocean_droplet.controllers"]
|
||||
depends_on = ["module.bootkube", "null_resource.copy-secrets"]
|
||||
|
||||
connection {
|
||||
type = "ssh"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Secure copy etcd TLS assets and kubeconfig to controllers. Activates kubelet.service
|
||||
resource "null_resource" "copy-secrets" {
|
||||
depends_on = ["module.controllers", "module.bootkube"]
|
||||
depends_on = ["module.bootkube"]
|
||||
count = "${var.controller_count}"
|
||||
|
||||
connection {
|
||||
|
@ -70,7 +70,7 @@ resource "null_resource" "copy-secrets" {
|
|||
# Secure copy bootkube assets to ONE controller and start bootkube to perform
|
||||
# one-time self-hosted cluster bootstrapping.
|
||||
resource "null_resource" "bootkube-start" {
|
||||
depends_on = ["module.controllers", "module.workers", "module.bootkube"]
|
||||
depends_on = ["module.bootkube", "module.workers", "null_resource.copy-secrets"]
|
||||
|
||||
connection {
|
||||
type = "ssh"
|
||||
|
|
Loading…
Reference in New Issue