Allow to customize job name
This commit is contained in:
parent
d36049cdd5
commit
e78b09f51c
|
@ -1,4 +1,4 @@
|
|||
job "unifi" {
|
||||
job [[ .unifi.job_name | toJSON ]] {
|
||||
|
||||
[[- template "common/job_start.tpl" . ]]
|
||||
|
||||
|
@ -53,6 +53,7 @@ job "unifi" {
|
|||
]
|
||||
}
|
||||
|
||||
[[- if not .unifi.controller.mongo.is_external ]]
|
||||
service {
|
||||
name = "unifi-mongo[[ .env.suffix ]]"
|
||||
port = 27017
|
||||
|
@ -71,6 +72,7 @@ job "unifi" {
|
|||
}
|
||||
}
|
||||
}
|
||||
[[- end ]]
|
||||
|
||||
volume "unifi-data" {
|
||||
type = [[ .unifi.controller.volume.type | toJSON ]]
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
# - A firmware downloader helper : this is because the Unifi Controller can't use an outbound web proxy
|
||||
|
||||
unifi:
|
||||
# The name of the nomad job
|
||||
job_name: unifi
|
||||
|
||||
# This is for the web management console
|
||||
controller:
|
||||
|
|
Loading…
Reference in New Issue