Dear nomad community,
I am learning nomad and trying to create a sysbatch job with input parameters like:
job "install-slurm" {
datacenters = ["dc1"]
type = "sysbatch" # sysbatch --> runs on all nomad clients
parameterized {
meta_required = ["version"]
}
group "install-slurm" {
task "zypper" {
driver = "raw_exec"
user = "root"
config {
command = "zypper"
args = ["install", "-y", "slurm=${NOMAD_META_version}", "slurm-slurmctld=${NOMAD_META_version}", "slurm-perlapi=${NOMAD_META_version}", "slurm-slurmpmi=${NOMAD_META_version}", "slurm-devel=${NOMAD_META_version}"]
}
}
}
}
I am reading the documentation and got something working with meta, however I also saw other options to parametrize jobs like variables and payload.
I would like to ask whats the difference and which use case fits each one of them (meta, variables, payload)
thank you