Skip to content
Snippets Groups Projects
Verified Commit 29082041 authored by Vincent Sellier's avatar Vincent Sellier
Browse files

admin/cluster-admin.tf: Add resource dependencies before cluster removal

Related to sysadm-environment#4730
parent fe443b13
No related branches found
No related tags found
No related merge requests found
...@@ -261,5 +261,22 @@ prometheus: ...@@ -261,5 +261,22 @@ prometheus:
metallb.universe.tf/allow-shared-ip: clusterIP metallb.universe.tf/allow-shared-ip: clusterIP
enabled: false enabled: false
loadBalancerIP: 192.168.50.44 loadBalancerIP: 192.168.50.44
prometheusOperator:
logLevel: debug
EOF EOF
depends_on = [rancher2_cluster_sync.cluster-admin,
rancher2_cluster.cluster-admin,
module.rancher-node-admin-mgmt1,
module.rancher-node-admin-node01,
module.rancher-node-admin-node02,
module.rancher-node-admin-node03]
}
resource "rancher2_cluster_sync" "cluster-admin" {
cluster_id = rancher2_cluster.cluster-admin.id
state_confirm = 2
timeouts {
create = "45m"
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment