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 a Data Source to list all VPS #345

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

smortex
Copy link
Contributor

@smortex smortex commented Dec 8, 2022

The ovh_dedicated_servers Data Source allows to list all dedicated servers in order to use the ovh_dedicated_server data source to collect their details. The ovh_vps data source is similar to ovh_dedicated_server, but we are missing a component to list all available VPS.

This PR a new data source that return the list of VPS:

data "ovh_vpss" "all_vps" {
}

data "ovh_vps" "vps" {
  for_each = toset(data.ovh_vpss.all_vps.result)
  service_name = each.key
  
}

A better name for this data source is still to be found (There are only two hard things in Computer Science: cache invalidation and naming things).

The `ovh_dedicated_servers` Data Source allows to list all dedicated
servers in order to use te `ovh_dedicated_server` data source to collect
their details.  The `ovh_vps` data source is similar to
`ovh_dedicated_server`, but we are missing a component to list all
available VPS.

Add a new data source that return the list of VPS.
@scraly scraly added the 0.25.0 label Dec 14, 2022
@scraly
Copy link
Collaborator

scraly commented Dec 14, 2022

Hi,
tested and approved :)

@scraly scraly merged commit 4dfb005 into ovh:master Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants