Skip to content

Commit 841945b

Browse files
authored
Wait for cloud-init completion before k8s extension install (#611)
Signed-off-by: Devon Crouse <[email protected]> Signed-off-by: Devon Crouse <[email protected]>
1 parent e0f7e7d commit 841945b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/extensions/k8stools.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017, 2021 Oracle Corporation and/or affiliates.
1+
# Copyright 2017, 2022 Oracle Corporation and/or affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
33

44
resource "null_resource" "install_k8stools_on_operator" {
@@ -21,6 +21,7 @@ resource "null_resource" "install_k8stools_on_operator" {
2121

2222
provisioner "remote-exec" {
2323
inline = [
24+
"cloud-init status --wait",
2425
"if [ -f \"$HOME/install_kubectx.sh\" ]; then bash \"$HOME/install_kubectx.sh\"; rm -f \"$HOME/install_kubectx.sh\";fi",
2526
]
2627
}

0 commit comments

Comments
 (0)