diff options
Diffstat (limited to 'terraform/hash-prometheus/prometheus.tf')
-rw-r--r-- | terraform/hash-prometheus/prometheus.tf | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/terraform/hash-prometheus/prometheus.tf b/terraform/hash-prometheus/prometheus.tf index dd25727..4c77ce8 100644 --- a/terraform/hash-prometheus/prometheus.tf +++ b/terraform/hash-prometheus/prometheus.tf @@ -42,7 +42,7 @@ resource "docker_container" "prometheus" { # } mounts { - source = "${local.path}" + source = local.path target = "/etc/prometheus" type = "bind" } @@ -53,19 +53,8 @@ resource "docker_container" "prometheus" { container_path = "/prometheus" } - depends_on = [ null_resource.mkdir ] } locals { path = "/etc/docker-service/prometheus" } - -resource "null_resource" "mkdir" { - triggers = { - path = local.path - } - - provisioner "local-exec" { - command = "ssh ${local.host} sudo mkdir -p ${local.path}" - } -} |