Does nomad-pack
not allow the hyphen/dash character in certain names? Is there a naming convention that I should be aware of when building nomad-pack
templates?
Trying to run nomad-pack
gave me this:
$ nomad-pack run ./packs/super-awesome-application --var-file=jobs/super-awesome-application.hcl
! Failed To Process Pack
Error: template: super-awesome-application/templates/super-awesome-application.nomad.tpl:2: bad character U+002D '-'
Type: *errors.errorString
Context:
- Registry Name: dev
- Pack Name: super-awesome-application
- Pack Ref: dev
- Deployment Name: super-awesome-application
The template file referenced:
job "Super-Awesome-Application" {
region = "[[ .super-awesome-application.region ]]"
datacenters = [ [[ .super-awesome-application.datacenters | quote ]] ]
priority = 65
...