diff --git a/pipelines/utilities/rancher/terraform_install/main.tf b/pipelines/utilities/rancher/terraform_install/main.tf index 7898b7967a..42c86fa400 100644 --- a/pipelines/utilities/rancher/terraform_install/main.tf +++ b/pipelines/utilities/rancher/terraform_install/main.tf @@ -21,7 +21,19 @@ resource "rancher2_catalog_v2" "longhorn_repo" { git_branch = var.rancher_chart_git_branch } +resource "time_sleep" "wait_60_seconds" { + depends_on = [ + rancher2_catalog_v2.longhorn_repo + ] + + create_duration = "60s" +} + resource "rancher2_app_v2" "longhorn_app" { + depends_on = [ + time_sleep.wait_60_seconds + ] + cluster_id = "local" name = "longhorn-app" namespace = "longhorn-system"