removed the cluster provisioning null ressource as not needed
This commit is contained in:
parent
d1d3fdb6e3
commit
efad2fa870
14
main.tf
14
main.tf
@ -156,19 +156,5 @@ resource "hcloud_placement_group" "k3s" {
|
|||||||
data "hcloud_load_balancer" "traefik" {
|
data "hcloud_load_balancer" "traefik" {
|
||||||
name = "traefik"
|
name = "traefik"
|
||||||
|
|
||||||
depends_on = [null_resource.cluster_provisioning]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
resource "null_resource" "cluster_provisioning" {
|
|
||||||
|
|
||||||
provisioner "local-exec" {
|
|
||||||
when = destroy
|
|
||||||
command = <<-EOT
|
|
||||||
hcloud load-balancer delete traefik
|
|
||||||
hcloud network delete k3s
|
|
||||||
EOT
|
|
||||||
}
|
|
||||||
|
|
||||||
depends_on = [null_resource.first_control_plane]
|
depends_on = [null_resource.first_control_plane]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user