fix crowdsec-agent: error on start try to create user
This commit is contained in:
parent
b8b2db7632
commit
7b9c34c567
@ -1,5 +1,6 @@
|
||||
job "crowdsec-api" {
|
||||
datacenters = ["homelab"]
|
||||
priority = 50
|
||||
type = "service"
|
||||
meta {
|
||||
forcedeploy = "-1"
|
||||
@ -45,10 +46,6 @@ job "crowdsec-api" {
|
||||
template {
|
||||
data = <<EOH
|
||||
DISABLE_AGENT = "true"
|
||||
{{with secret "secrets/data/nomad/crowdsec"}}
|
||||
AGENT_USERNAME = "{{.Data.data.AGENT_USERNAME}}"
|
||||
AGENT_PASSWORD = "{{.Data.data.AGENT_PASSWORD}}"
|
||||
{{end}}
|
||||
EOH
|
||||
destination = "secret/api.env"
|
||||
env = "true"
|
||||
|
Loading…
Reference in New Issue
Block a user