We have some utilities that communicate with Nomad with its HTTP API.
We would like to start utilising some of the HCL2 features like variables but not sure how to make it work at the moment.
When submitting jobs, we use the /v1/jobs/parse
endpoint to convert HCL to JSON and then submit the JSON as required by the API. However, with HCL2 it seems like some pre-processing is required when it comes to variables.
Our utilities are written with Python so that makes things worse since I don’t think there is an official HCL2 library for Python.
I really don’t wont to fork out to external nomad process to do this, is there any other way?