Skip to content

Commit 7b094f4

Browse files
authored
Merge pull request #9 from hellertang/feat/add_disk_type
add more disk type
2 parents 1688c84 + 6cefc8f commit 7b094f4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.web-docs/components/builder/cvm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ a [communicator](/packer/docs/templates/legacy_json_templates/communicator) can
134134
type for all data disks, and each data disk size will use the origin
135135
value in source image.
136136
The data disks allow for the following argument:
137-
- `disk_type` - Type of the data disk. Valid choices: `CLOUD_BASIC`, `CLOUD_PREMIUM` and `CLOUD_SSD`.
137+
- `disk_type` - Type of the data disk. Valid choices: `CLOUD_BASIC`, `CLOUD_PREMIUM`, `CLOUD_SSD`, `CLOUD_BSSD`, `CLOUD_HSSD` and `CLOUD_TSSD`.
138138
- `disk_size` - Size of the data disk.
139139
- `disk_snapshot_id` - Id of the snapshot for a data disk.
140140

builder/tencentcloud/cvm/run_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type TencentCloudRunConfig struct {
5757
// type for all data disks, and each data disk size will use the origin
5858
// value in source image.
5959
// The data disks allow for the following argument:
60-
// - `disk_type` - Type of the data disk. Valid choices: `CLOUD_BASIC`, `CLOUD_PREMIUM` and `CLOUD_SSD`.
60+
// - `disk_type` - Type of the data disk. Valid choices: `CLOUD_BASIC`, `CLOUD_PREMIUM`, `CLOUD_SSD`, `CLOUD_BSSD`, `CLOUD_HSSD` and `CLOUD_TSSD`.
6161
// - `disk_size` - Size of the data disk.
6262
// - `disk_snapshot_id` - Id of the snapshot for a data disk.
6363
DataDisks []tencentCloudDataDisk `mapstructure:"data_disks"`
@@ -110,7 +110,7 @@ type TencentCloudRunConfig struct {
110110
}
111111

112112
var ValidCBSType = []string{
113-
"LOCAL_BASIC", "LOCAL_SSD", "CLOUD_BASIC", "CLOUD_SSD", "CLOUD_PREMIUM",
113+
"LOCAL_BASIC", "LOCAL_SSD", "CLOUD_BASIC", "CLOUD_PREMIUM", "CLOUD_BSSD", "CLOUD_SSD", "CLOUD_HSSD", "CLOUD_TSSD",
114114
}
115115

116116
func (cf *TencentCloudRunConfig) Prepare(ctx *interpolate.Context) []error {

docs-partials/builder/tencentcloud/cvm/TencentCloudRunConfig-not-required.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
type for all data disks, and each data disk size will use the origin
2929
value in source image.
3030
The data disks allow for the following argument:
31-
- `disk_type` - Type of the data disk. Valid choices: `CLOUD_BASIC`, `CLOUD_PREMIUM` and `CLOUD_SSD`.
31+
- `disk_type` - Type of the data disk. Valid choices: `CLOUD_BASIC`, `CLOUD_PREMIUM`, `CLOUD_SSD`, `CLOUD_BSSD`, `CLOUD_HSSD` and `CLOUD_TSSD`.
3232
- `disk_size` - Size of the data disk.
3333
- `disk_snapshot_id` - Id of the snapshot for a data disk.
3434

0 commit comments

Comments
 (0)