* Update docs on ebs encrypt_boot to clarify that packer will not override global account settings * Update struct-markdown generator and regenerate partials with new website location. This overwrites some linting that got automatically applied when the files got moved
75 lines
1.3 KiB
Plaintext
75 lines
1.3 KiB
Plaintext
<!-- Code generated from the comments of the DiskConfig struct in builder/vsphere/common/storage_config.go; DO NOT EDIT MANUALLY -->
|
|
|
|
Defines the disk storage for a VM.
|
|
|
|
Example that will create a 15GB and a 20GB disk on the VM. The second disk will be thin provisioned:
|
|
|
|
In JSON:
|
|
```json
|
|
"storage": [
|
|
{
|
|
"disk_size": 15000
|
|
},
|
|
{
|
|
"disk_size": 20000,
|
|
"disk_thin_provisioned": true
|
|
}
|
|
],
|
|
```
|
|
In HCL2:
|
|
```hcl
|
|
storage {
|
|
disk_size = 15000
|
|
}
|
|
storage {
|
|
disk_size = 20000
|
|
disk_thin_provisioned = true
|
|
}
|
|
```
|
|
|
|
Example that creates 2 pvscsi controllers and adds 2 disks to each one:
|
|
|
|
In JSON:
|
|
```json
|
|
"disk_controller_type": ["pvscsi", "pvscsi"],
|
|
"storage": [
|
|
{
|
|
"disk_size": 15000,
|
|
"disk_controller_index": 0
|
|
},
|
|
{
|
|
"disk_size": 15000,
|
|
"disk_controller_index": 0
|
|
},
|
|
{
|
|
"disk_size": 15000,
|
|
"disk_controller_index": 1
|
|
},
|
|
{
|
|
"disk_size": 15000,
|
|
"disk_controller_index": 1
|
|
}
|
|
],
|
|
```
|
|
|
|
In HCL2:
|
|
```hcl
|
|
disk_controller_type = ["pvscsi", "pvscsi"]
|
|
storage {
|
|
disk_size = 15000,
|
|
disk_controller_index = 0
|
|
}
|
|
storage {
|
|
disk_size = 15000
|
|
disk_controller_index = 0
|
|
}
|
|
storage {
|
|
disk_size = 15000
|
|
disk_controller_index = 1
|
|
}
|
|
storage {
|
|
disk_size = 15000
|
|
disk_controller_index = 1
|
|
}
|
|
```
|