diff --git a/core/metrics/grafana.nomad b/core/metrics/grafana.nomad index 4b8677d..dcbd30f 100644 --- a/core/metrics/grafana.nomad +++ b/core/metrics/grafana.nomad @@ -81,14 +81,8 @@ job "grafana" { args = [ "/bin/bash", "-c", - "/usr/bin/mysql --defaults-extra-file=/task/my.cnf < /task/bootstrap.sql", + "/usr/bin/mysql --defaults-extra-file=$${NOMAD_SECRETS_DIR}/my.cnf < $${NOMAD_SECRETS_DIR}/bootstrap.sql", ] - - mount { - type = "bind" - source = "local/" - target = "/task/" - } } vault { @@ -108,7 +102,7 @@ user=root password={{ .Data.data.root_password }} {{ end }} EOF - destination = "local/my.cnf" + destination = "$${NOMAD_SECRETS_DIR}/my.cnf" } template { @@ -123,7 +117,7 @@ SELECT 'NOOP'; {{ end -}} {{ end -}} EOF - destination = "local/bootstrap.sql" + destination = "$${NOMAD_SECRETS_DIR}/bootstrap.sql" } resources {