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

Add data source for listing datacenters #165

Merged
merged 1 commit into from
Oct 30, 2020
Merged

Conversation

lgfa29
Copy link
Contributor

@lgfa29 lgfa29 commented Oct 30, 2020

This PR introduces a new data source to list datacenters in the region where the provider is configured.

data "nomad_datacenters" "datacenters" {
  prefix            = "prod"
  ignore_down_nodes = true
}

An alias can be used for listing datacenters in multiple regions.

Closes #151

@lgfa29 lgfa29 requested a review from cgbaker October 30, 2020 20:54
Copy link
Contributor

@cgbaker cgbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@lgfa29 lgfa29 merged commit f814d54 into master Oct 30, 2020
@lgfa29 lgfa29 deleted the f-datasource-datacenter branch October 30, 2020 22:00
@lgfa29 lgfa29 mentioned this pull request Oct 30, 2020
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

Successfully merging this pull request may close these issues.

Feature idea: nomad_datacenter data source
2 participants