add openstack volume_size option

Adds an option to OpenStack, `volume_size` (int), which is the size of
the Block Storage service volume in GB.
This commit is contained in:
Johannes J. Schmidt 2018-12-18 23:58:27 +01:00
parent 59307d6d02
commit 336c11c54a
2 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,7 @@ type RunConfig struct {
UseBlockStorageVolume bool `mapstructure:"use_blockstorage_volume"` UseBlockStorageVolume bool `mapstructure:"use_blockstorage_volume"`
VolumeName string `mapstructure:"volume_name"` VolumeName string `mapstructure:"volume_name"`
VolumeType string `mapstructure:"volume_type"` VolumeType string `mapstructure:"volume_type"`
VolumeSize int `mapstructure:"volume_size"`
VolumeAvailabilityZone string `mapstructure:"volume_availability_zone"` VolumeAvailabilityZone string `mapstructure:"volume_availability_zone"`
// Not really used, but here for BC // Not really used, but here for BC

View File

@ -275,6 +275,11 @@ builder.
isn't specified, the default enforced by your OpenStack cluster will be isn't specified, the default enforced by your OpenStack cluster will be
used. used.
- `volume_size` (int) - Size of the Block Storage service volume in GB. If this
isn't specified, it is set to source image min disk value (if set) or
calculated from the source image bytes size. Note that in some cases this
needs to be specified, if `use_blockstorage_volume` is true.
- `volume_availability_zone` (string) - Availability zone of the Block - `volume_availability_zone` (string) - Availability zone of the Block
Storage service volume. If omitted, Compute instance availability zone will Storage service volume. If omitted, Compute instance availability zone will
be used. If both of Compute instance and Block Storage volume availability be used. If both of Compute instance and Block Storage volume availability