Skip to content

Commit 6daf189

Browse files
committed
services/nomad/apps: Move devspace keys to nomad vars
1 parent 4d22f47 commit 6daf189

File tree

2 files changed

+6
-24
lines changed

2 files changed

+6
-24
lines changed

services/nomad/apps/devspace.nomad

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ job "devspace" {
5757
read_only = true
5858
}
5959

60-
vault {
61-
policies = ["void-secrets-devspace"]
62-
}
63-
6460
config {
6561
image = "ghcr.io/void-linux/infra-sftpgo:20241231R1"
6662
network_mode = "host"
@@ -83,26 +79,26 @@ job "devspace" {
8379

8480
template {
8581
data = <<EOF
86-
{{- with secret "secret/devspace/ssh" -}}
87-
{{.Data.ssh_host_rsa_key}}
82+
{{- with nomadVar "nomad/jobs/devspace" -}}
83+
{{ .ssh_host_rsa_key }}
8884
{{- end -}}
8985
EOF
9086
destination = "secrets/id_rsa"
9187
}
9288

9389
template {
9490
data = <<EOF
95-
{{- with secret "secret/devspace/ssh" -}}
96-
{{.Data.ssh_host_ed25519_key}}
91+
{{- with nomadVar "nomad/jobs/devspace" -}}
92+
{{ .ssh_host_ed25519_key }}
9793
{{- end -}}
9894
EOF
9995
destination = "secrets/id_ed25519"
10096
}
10197

10298
template {
10399
data = <<EOF
104-
{{- with secret "secret/devspace/ssh" -}}
105-
{{.Data.ssh_host_ecdsa_key}}
100+
{{- with nomadVar "nomad/jobs/devspace" -}}
101+
{{ .ssh_host_ecdsa_key }}
106102
{{- end -}}
107103
EOF
108104
destination = "secrets/id_ecdsa"

terraform/hashistack/policy_devspace.tf

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

0 commit comments

Comments
 (0)