hello,
Can we setup an action block with custom args.
ie:
action "get-changelog" {
command = "/usr/bin/curl"
args = [
"$1"
]
}
and then give $1
on the UI ?
hello,
Can we setup an action block with custom args.
ie:
action "get-changelog" {
command = "/usr/bin/curl"
args = [
"$1"
]
}
and then give $1
on the UI ?
Hey @Antse, thanks for the request. It’s a good idea that I’ve been considering (see [Feature Request] Allow passing user arguments to nomad actions · Issue #24143 · hashicorp/nomad · GitHub) and my opposition has always been around “An operator shouldn’t be able to do anything that doesn’t feel locked down”
That said, with each passing week I come around to (typesafe? conditional?) parameter passing. I would welcome any ideas around why this might be useful to you, and I’ll try to get things planned.
Actually i prefer running an action with arguments instead of seeing someone starting a shell and running a command.
Typical usecase : ruby stack, and want run some rails tasks.
But i understand your point legit !