Skip to content

Commit 8668031

Browse files
committed
services/nomad/apps: move IRC secrets to nomad vars
1 parent 2cfca16 commit 8668031

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

services/nomad/apps/ircbot.nomad

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ job "ircbot" {
2525
task "ircbot" {
2626
driver = "docker"
2727

28-
vault {
29-
policies = ["void-secrets-ircbot"]
30-
}
31-
3228
config {
3329
image = "ghcr.io/void-linux/ircbot:v0.1.5"
3430
}
@@ -42,12 +38,10 @@ job "ircbot" {
4238

4339
template {
4440
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" }}
42+
IRC_USER="{{ .username }}"
43+
IRC_PASS="{{ .password }}"
44+
WEBHOOK_SECRET="{{ .webhook }}"
5145
{{- end }}
5246
EOT
5347
destination = "secret/env"

terraform/hashistack/policy_ircbot.tf

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)