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"
|
attachment_mode = "file-system"
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ template "common/task.wait_for.tpl" dict
|
[[ template "common/task.wait_for.tpl" $c ]]
|
||||||
"ctx" .
|
|
||||||
"wait_for" (coll.Slice (dict "service" .unifi.controller.mongo.service_name)) ]]
|
|
||||||
|
|
||||||
task "nginx" {
|
task "nginx" {
|
||||||
driver = [[ .nomad.driver | toJSON ]]
|
driver = [[ .nomad.driver | toJSON ]]
|
||||||
|
|
|
@ -24,6 +24,9 @@ unifi:
|
||||||
cpu: 200
|
cpu: 200
|
||||||
memory: 1024
|
memory: 1024
|
||||||
|
|
||||||
|
wait_for:
|
||||||
|
- service: '[[ .unifi.controller.mongo.service_name ]]'
|
||||||
|
|
||||||
# Mongo instance to use
|
# Mongo instance to use
|
||||||
mongo:
|
mongo:
|
||||||
# The address of the mongo service. Leave the default
|
# The address of the mongo service. Leave the default
|
||||||
|
|
Loading…
Reference in New Issue
Block a user