Adapt for new wait_for template
This commit is contained in:
parent
13bdb9898c
commit
76b7f9587d
|
@ -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 ]]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue