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" {
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user