Remove the fw-downloader as it doesn't allow firmware to be pushed to

devices
This commit is contained in:
Daniel Berteaud 2023-12-20 09:20:21 +01:00
parent 2d45b27069
commit e283bc39cb
2 changed files with 3 additions and 56 deletions

View File

@ -17,7 +17,7 @@ job [[ .unifi.instance | toJSON ]] {
name = "[[ .unifi.instance ]][[ .consul.suffix ]]"
port = 8888
[[ template "common/connect.tpl" $c ]]
[[ template "common/connect" $c ]]
tags = [
"[[ $c.traefik.instance ]].enable=true",
@ -112,32 +112,6 @@ _EOF
[[ template "common/resources" .unifi.nginx.resources ]]
}
task "firmware-downloader" {
driver = [[ .nomad.driver | toJSON ]]
user = 8443
lifecycle {
hook = "poststart"
sidecar = true
}
config {
image = [[ .unifi.fw_dl.image | toJSON ]]
}
env {
[[ template "common/env" merge .unifi.fw_dl.env .env ]]
[[ template "common/proxy_env" . ]]
}
volume_mount {
volume = "data"
destination = "/data"
}
[[ template "common/resources" .unifi.fw_dl.resources ]]
}
task "controller" {
leader = true
@ -148,11 +122,7 @@ _EOF
volumes = [
"local/init-system.properties.sh:/entrypoint.d/10-init-system.properties.sh"
]
mount {
type = "tmpfs"
target = "/opt/unifi/run"
readonly = false
}
[[ template "common/tmpfs" "/opt/unifi/run" ]]
}
vault {
@ -217,7 +187,7 @@ _EOF
}
volume_mount {
volume = "mongo"
volume = "mongo"
destination = "/data/db"
}

View File

@ -142,29 +142,6 @@ unifi:
cpu: 100
memory: 256
# This componant will be used if a proxy is set.
# It's needed because the UniFi controller do not send outbound web requests
# through the configured proxy to download firmwares
fw_dl:
# The image to use
image: danielberteaud/ubnt-firmware-downloader:23.10-1
# Resource allocation
resources:
cpu: 10
memory: 64
# Additionnal environment to set on the container
env:
# The dir where firmwares will be stored
UBNT_FIRMWARE_DIR: /data/unifi/firmware
# A list of platforms for which firmware will be downloaded (other ones will be ignored)
UBNT_PLATFORMS: U7HD,US48PRO
# A cron expression to run the update
UBNT_CRON: 48 22 * * *
# Volumes
volumes:
data: