We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cfca16 commit 8668031Copy full SHA for 8668031
services/nomad/apps/ircbot.nomad
@@ -25,10 +25,6 @@ job "ircbot" {
25
task "ircbot" {
26
driver = "docker"
27
28
- vault {
29
- policies = ["void-secrets-ircbot"]
30
- }
31
-
32
config {
33
image = "ghcr.io/void-linux/ircbot:v0.1.5"
34
}
@@ -42,12 +38,10 @@ job "ircbot" {
42
38
43
39
template {
44
40
data = <<EOT
45
-{{- with secret "secret/ircbot/credentials" }}
46
-IRC_USER="{{.Data.user}}"
47
-IRC_PASS="{{.Data.pass}}"
48
-{{- end }}
49
-{{- with secret "secret/ircbot/webhook" }}
50
-WEBHOOK_SECRET="{{.Data.gh}}"
41
+{{- with nomadVar "nomad/jobs/ircbot" }}
+IRC_USER="{{ .username }}"
+IRC_PASS="{{ .password }}"
+WEBHOOK_SECRET="{{ .webhook }}"
51
{{- end }}
52
EOT
53
destination = "secret/env"
terraform/hashistack/policy_ircbot.tf
0 commit comments