Move each service to it's own tf file
This commit is contained in:
12
2-nomad-config/authelia.tf
Normal file
12
2-nomad-config/authelia.tf
Normal file
@@ -0,0 +1,12 @@
|
||||
resource "nomad_job" "authelia" {
|
||||
jobspec = file("authelia.nomad.hcl")
|
||||
}
|
||||
|
||||
resource "nomad_variable" "authelia" {
|
||||
path = "nomad/jobs/authelia"
|
||||
items = {
|
||||
session_secret = data.sops_file.secrets.data["authelia.session_secret"]
|
||||
jwt_secret = data.sops_file.secrets.data["authelia.jwt_secret"]
|
||||
encryption_key = data.sops_file.secrets.data["authelia.encryption_key"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user