Adapt for new wait_for template

This commit is contained in:
Daniel Berteaud 2023-10-30 23:41:49 +01:00
parent 13bdb9898c
commit 76b7f9587d
2 changed files with 4 additions and 3 deletions

View File

@ -91,9 +91,7 @@ job [[ .unifi.instance | toJSON ]] {
attachment_mode = "file-system"
}
[[ template "common/task.wait_for.tpl" dict
"ctx" .
"wait_for" (coll.Slice (dict "service" .unifi.controller.mongo.service_name)) ]]
[[ template "common/task.wait_for.tpl" $c ]]
task "nginx" {
driver = [[ .nomad.driver | toJSON ]]

View File

@ -24,6 +24,9 @@ unifi:
cpu: 200
memory: 1024
wait_for:
- service: '[[ .unifi.controller.mongo.service_name ]]'
# Mongo instance to use
mongo:
# The address of the mongo service. Leave the default