Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nomad_job resource information when planning #247

Closed
jorgemarey opened this issue Sep 3, 2021 · 1 comment
Closed

nomad_job resource information when planning #247

jorgemarey opened this issue Sep 3, 2021 · 1 comment

Comments

@jorgemarey
Copy link
Contributor

Hi,

I was wondering if it's possible to modify the nomad_job resource to output/include more information when doing a terraform plan. Currently we can see the changes on the job but it would be usefull to receive some information like nomad plan does:

Exmaple of output for nomad plan

+/- Job: "test"
+/- Task Group: "test-group" (1 canary, 1 ignore)
  +/- Task: "task-a" (forces create/destroy update)
 ....
  +/- Task Group: "task-b" (1 in-place update)
 ....

This information about what's about to happen it's really usefull for us.

Thanks in advance.

@lgfa29
Copy link
Contributor

lgfa29 commented Nov 2, 2021

Hi @jorgemarey 👋

Unfortunately this would not be possible until, at least, #1 is fixed. The Terraform and Nomad state are two different things and controlled differently by each tool.

A fix for #1 would allow better diffs because then each jobspec field would be tracked by Terraform as well, but until then, there's nothing we can do to improve it....

I will close this and we re-evaluate the diff quality for jobs when #1 is fixed.

@lgfa29 lgfa29 closed this as completed Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants