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-pack integtation #409

Open
jorgemarey opened this issue Dec 18, 2023 · 1 comment
Open

nomad-pack integtation #409

jorgemarey opened this issue Dec 18, 2023 · 1 comment

Comments

@jorgemarey
Copy link
Contributor

I'll be nice to have a terraform reource to manage nomad-pack templates.

Nomad-pack made nomad jobs reusable by providing a templating mechanism, but currently there's no "standard" way of storing nomad-pack deployments as code. You can always save the version and registry and run a bash command, but that's not very elegant.

Having a nomad-pack resource on terraform could have the following improvements:

  • Store as IaC nomad-pack deployments.
  • Use imputs from other terraform resources.
  • Have nomad deployments in the same pipeline and same tool/configurtion as other IaC.

The resource could be something like this:

resource "nomad_pack" "autoscaler" {
  name            = "autoscaler"
  pack_name       = "autoscaler"
  revision        = "v0.3.7"
  namespace       = var.namespace
  preserve_counts = true
  vars = {
    job_name          = var.job_name
    target            = "aws-asg"
    region            = var.region
    config_path       = var.config_path
  }

To set the diff, maybe it could be usefull to store in terraform the rendered job and use that for the diff.

@ednxzu
Copy link

ednxzu commented May 24, 2024

Hey ! any news on this feature ? :) would be very cool to use !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants