Allow to customize job name

This commit is contained in:
Daniel Berteaud 2023-09-03 16:43:58 +02:00
parent d36049cdd5
commit e78b09f51c
2 changed files with 5 additions and 1 deletions

View File

@ -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 ]]

View File

@ -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: