terraform-provider-nomad
terraform-provider-nomad copied to clipboard
Add a nomad_job_v2 resource
There is one thing were I'm not sure, the documentation for the spread target at https://www.nomadproject.io/docs/job-specification/spread#spread-with-target-percentages give them an ID:
spread {
attribute = "${node.datacenter}"
weight = 100
target "us-east1" {
percent = 50
}
}
but the struct in the API at https://github.com/hashicorp/nomad/blob/master/api/tasks.go#L263-L267 has no attribute where to set it. Is it useless?
Despite @remilapeyre brave efforts, this approach turned out to be impossible to manage over time as it requires keeping the Terraform spec for jobs in sync with Nomad.
We should investigate the advancements in the Terraform plugin development ecosystem to come up with a better solution to #1.
Thank you again @remilapeyre for all the hard work on this!