Skip to content

Commit bf29adc

Browse files
jeanjean
authored andcommitted
docs: Add documentation for service_offering_details feature
- Update service offering documentation with GPU examples - Add service_offering_details parameter documentation - Update CHANGELOG with new feature entry - Include practical examples for GPU configuration
1 parent 3512f1b commit bf29adc

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## 0.4.0 (Unreleased)
22

3+
FEATURES:
4+
5+
* **New Resource Attribute**: `cloudstack_service_offering` now supports `service_offering_details` for GPU configuration and other advanced settings [GH-246]
6+
37
IMPROVEMENTS:
48

59
* Restore support for managing resource tags as CloudStack 4.11.3+ and 4.12+ support tags again [GH-65]

website/docs/r/service_offering.html.markdown

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,30 @@ A `cloudstack_service_offering` resource manages a service offering within Cloud
1212

1313
## Example Usage
1414

15+
### Basic Service Offering
16+
1517
```hcl
1618
resource "cloudstack_service_offering" "example" {
1719
name = "example-service-offering"
1820
display_text = "Example Service Offering"
21+
cpu_number = 2
22+
memory = 4096
23+
}
24+
```
25+
26+
### GPU Service Offering
27+
28+
```hcl
29+
resource "cloudstack_service_offering" "gpu_offering" {
30+
name = "gpu-a6000"
31+
display_text = "GPU A6000 Instance"
32+
cpu_number = 4
33+
memory = 16384
34+
35+
service_offering_details = {
36+
pciDevice = "Group of NVIDIA A6000 GPUs"
37+
vgpuType = "A6000-8A"
38+
}
1939
}
2040
```
2141

@@ -69,6 +89,9 @@ The following arguments are supported:
6989

7090
* `storage_tags` - (Optional) Storage tags to associate with the service offering.
7191

92+
* `service_offering_details` - (Optional) A map of service offering details for GPU configuration and other advanced settings. Common keys include `pciDevice` and `vgpuType` for GPU offerings.
93+
Changing this forces a new resource to be created.
94+
7295
## Attributes Reference
7396

7497
The following attributes are exported:

0 commit comments

Comments
 (0)