Skip to content

feat(instance): add data source for instance_server_type #3257

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Mia-Cross
Copy link
Contributor

@Mia-Cross Mia-Cross commented Aug 6, 2025

This PR introduces a new data source instance_server_type which will allow users to read the specifications of a given server type and use the values for configuration.

For now, the information is fetched from the Instance API, but we should consider reading it from the PCU as soon as it becomes available.
Some specs have been deliberately omitted :

  • ipv6_support: is always true for every server type.
  • capabilities.private_network (the number of PN allowed): not available in the sdk-go
  • capabilities.placement_groups: not available in the sdk-go, but is always true for every server type
  • capabilities.hot_snapshots_local_volume: not available in the sdk-go

Left to-do:

  • Write the documentation page
  • Resolve TODOs

Closes #2512

@Mia-Cross Mia-Cross self-assigned this Aug 6, 2025
@Mia-Cross Mia-Cross added enhancement instance Instance issues, bugs and feature requests priority:high New features labels Aug 6, 2025
@Mia-Cross Mia-Cross force-pushed the instance_server_type_data_source branch from c254da0 to 51dfbaa Compare August 6, 2025 13:43
@Mia-Cross Mia-Cross force-pushed the instance_server_type_data_source branch from 51dfbaa to 471a987 Compare August 6, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement instance Instance issues, bugs and feature requests priority:high New features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add several data sources to ease automation
2 participants