Basic job-definitions for deploying awx to your nomad cluster (HashiCorp)
Separate files for 3.0.1 & 4.0.0 versions. I recommend using 3.0.1 for now, as there are some problems with 4.0.0 version (missing files/env, websockets, etc)
Any tips on how to improve the job-definitions, workarounds for problems, etc are much appreciated
I use terraform for managing nomad-jobs, and hence the job-definition is written in hcl-format
All tasks are defined in a single "group" (meaning they will be scheduled to run on the same host). If you split the tasks, then the interpolated variables will not work, and need to be re-defined
To run in a production environment, you should modify the file to suit your environment. Examples:
- Increase increase job resources (cpu, memory, ..)
- Integrate with consul
- Integrate with vault
- Persist storage properly for database
- Use versioned container images
- Use private container repo
- Configure more dynamic addressing (example: envoy, Consul Connect)