fix crowdsec-agent: error on start try to create user

This commit is contained in:
vincent 2022-12-10 17:09:08 +01:00
parent b8b2db7632
commit 7b9c34c567

View File

@ -1,5 +1,6 @@
job "crowdsec-api" { job "crowdsec-api" {
datacenters = ["homelab"] datacenters = ["homelab"]
priority = 50
type = "service" type = "service"
meta { meta {
forcedeploy = "-1" forcedeploy = "-1"
@ -45,10 +46,6 @@ job "crowdsec-api" {
template { template {
data = <<EOH data = <<EOH
DISABLE_AGENT = "true" DISABLE_AGENT = "true"
{{with secret "secrets/data/nomad/crowdsec"}}
AGENT_USERNAME = "{{.Data.data.AGENT_USERNAME}}"
AGENT_PASSWORD = "{{.Data.data.AGENT_PASSWORD}}"
{{end}}
EOH EOH
destination = "secret/api.env" destination = "secret/api.env"
env = "true" env = "true"