hello everyone,
when a client meta key starts with a number it breaks the hcl2 validator for a job,
hcl1 appears to work fine.
when i run nomad job validate dummy.nomad, i get the following.
Error getting job struct: Failed to parse using HCL 2. Use the HCL 1 parser with `nomad run -hcl1`, or address the following issues:
dummy.nomad:7,33-36: Extra characters after interpolation expression; Expected a closing brace to end the interpolation expression, but found extra characters.
i tested with nomad v1.1.3 and v1.1.4
Our cluster currently runs with v0.12.7, i was checking for needed changes prior to upgrade.
from nomad agent config:
client {
enabled = true
meta {
"56net" = "true"
"web" = "true"
"balancer" = "false"
}
}
dummy job:
# vi: tabstop=4 shiftwidth=4 expandtab
job "ajob" {
datacenters = ["dc1"]
type = "service"
constraint {
attribute = "${meta.56net}" /* <== this one */
value = "true"
}
group "ahappylittlegroup" {
count = 1
constraint {
operator = "distinct_hosts"
value = "true"
}
task "dummy" {
driver = "docker"
config {
image = "whatever"
network_mode="host"
}
resources {
memory = 2048
cpu = 400
}
}
}
}
thank you