Skip to content

feat: create resource and data source for host configuration profiles#2588

Merged
tenthirtyam merged 13 commits intomainfrom
feat/config-profiles
Aug 20, 2025
Merged

feat: create resource and data source for host configuration profiles#2588
tenthirtyam merged 13 commits intomainfrom
feat/config-profiles

Conversation

@spacegospod
Copy link
Copy Markdown
Contributor

Summary

Adding the capability to manage host configuration profiles.

Overview

The purpose of this new functionality is to allow for easy management of configuration profiles and ease their propagation across clusters.
First of all it is much easier to propagate the configuration of one cluster to another via Terraform without having to even download the configuration file on a local filesystem.
Second, modifications to a configuration are not incorporated into the new resources. As an alternative an administrator can easily access the current configuration and its schema, make any number of modifications in a text editor of their choice, and simply re-apply them to the cluster.

d/vsphere_configuration_profile

This data source accepts a cluster_id (identifier of compute cluster) and reads its configuration profile if one is applied or fails otherwise.
The resulting configuration is available under the configuration attribute.

r/vsphere_configuration_profile

This resource can enable management via configuration profiles on a cluster and can apply a configuration on all hosts or a subset of hosts (if explicitly specified).
The source of the configuration can either be a reference host that is part of the same cluster or a plain JSON configuration that is read from a file or from another cluster.

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Documentation

  • Documentation has been added or updated.

Release Note

- `r/vsphere_configuration_profile` - Added a new resource for host configuration profiles.
- `d/vsphere_configuration_profile` - Added a new data source for host configuration profiles.

@spacegospod spacegospod self-assigned this Aug 20, 2025
@spacegospod spacegospod requested a review from a team as a code owner August 20, 2025 11:04
@github-actions github-actions bot added documentation Documentation provider Provider needs-review Needs Review size/xl Relative Sizing: Extra-Large labels Aug 20, 2025
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
@spacegospod spacegospod force-pushed the feat/config-profiles branch from 3dc325a to bcd2f8a Compare August 20, 2025 11:05
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Copy link
Copy Markdown
Contributor

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

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

Added some minor comments anf suggestions, but otherwise 🚀 .

spacegospod and others added 6 commits August 20, 2025 17:07
Co-authored-by: Ryan Johnson <ryan.johnson@broadcom.com>
Co-authored-by: Ryan Johnson <ryan.johnson@broadcom.com>
Co-authored-by: Ryan Johnson <ryan.johnson@broadcom.com>
Co-authored-by: Ryan Johnson <ryan.johnson@broadcom.com>
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Copy link
Copy Markdown
Contributor

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

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

Looks good!

@tenthirtyam tenthirtyam merged commit c79b405 into main Aug 20, 2025
9 checks passed
@tenthirtyam tenthirtyam deleted the feat/config-profiles branch August 20, 2025 15:04
@tenthirtyam tenthirtyam removed the needs-review Needs Review label Aug 20, 2025
@github-actions
Copy link
Copy Markdown

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Documentation provider Provider size/xl Relative Sizing: Extra-Large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants