open-nomad/e2e/workload_id/input/nobody.nomad
2023-04-10 15:36:59 +00:00

37 lines
662 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
job "nobodyid" {
datacenters = ["dc1"]
type = "batch"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "nobodyid" {
# nobody task should have a file owned by nobody with -rw------- perms
task "nobody" {
user = "nobody"
identity {
file = true
}
driver = "docker"
config {
image = "bash:5"
args = ["-c", "stat -c 'perms=%#a username=%U' secrets/nomad_token; echo done"]
}
resources {
cpu = 16
memory = 32
disk = 64
}
}
}
}