Meta interpolation in service stanza

Unable to intepolate “static” meta (defined in client nomad daemon) inside service stanza in job definition. Example (gate defined as “gate”=true in /etc/nomad.d/client.hcl):

...
     service {
        name = "traefik-ui"
        tags = [
          "node.unique.id=${node.unique.id}",
          "meta.gate=${meta.gate}",
          "traefik-ui"
        ]
...

Result in consul:
Screenshot_20220715_141046

Is it possible to define consul services dependent on dynamic node-specific information?

Hi @kinnalru, it does seem like that should work… do you mind opening a GitHub issue so we can track it and look into this?

thx.
Github issue: Invalid meta interpolation in service stanza · Issue #13803 · hashicorp/nomad · GitHub