removed the cluster provisioning null ressource as not needed

This commit is contained in:
Karim Naufal 2022-02-22 01:38:53 +01:00
parent d1d3fdb6e3
commit efad2fa870

14
main.tf
View File

@ -156,19 +156,5 @@ resource "hcloud_placement_group" "k3s" {
data "hcloud_load_balancer" "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]
}