terraform-provider-nomad icon indicating copy to clipboard operation
terraform-provider-nomad copied to clipboard

Add a nomad_job_v2 resource

Open remilapeyre opened this issue 4 years ago • 2 comments

remilapeyre avatar Aug 31 '20 22:08 remilapeyre

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?

remilapeyre avatar Sep 29 '20 16:09 remilapeyre

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Mar 12 '22 17:03 hashicorp-cla

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!

lgfa29 avatar Nov 25 '23 03:11 lgfa29