Skip to content

Commit

Permalink
removed and tested dependency on ip.finish (#156)
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Mukadam <[email protected]>
  • Loading branch information
hyder authored May 4, 2020
1 parent e4607dc commit 3ef4bbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Local .terraform directories
**/.terraform/*

provider.tf

# .tfstate files
*.tfstate
*.tfstate.*
Expand Down
4 changes: 2 additions & 2 deletions modules/oke/kubeconfig.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ resource "null_resource" "install_kubectl_admin" {
count = var.oke_admin.bastion_enabled == true && var.oke_admin.admin_enabled == true ? 1 : 0
}

# wait for 1. admin being ready 2. instance_principal created 3. kubectl is installed (the script will create the .kube directory)
# wait for 1. admin being ready 2. kubectl is installed (the script will create the .kube directory)
resource null_resource "wait_for_admin" {
connection {
host = var.oke_admin.admin_private_ip
Expand All @@ -76,7 +76,7 @@ resource null_resource "wait_for_admin" {

provisioner "remote-exec" {
inline = [
"while [ ! -f /home/opc/admin.finish ] || [ ! -f /home/opc/ip.finish ]; do sleep 10; done",
"while [ ! -f /home/opc/admin.finish ]; do sleep 10; done",
]
}

Expand Down

0 comments on commit 3ef4bbf

Please sign in to comment.