mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #31253 from gtmanfred/2015.8
allow for nova servers to be built with premade volumes
This commit is contained in:
commit
dc2e7c8956
@ -112,7 +112,7 @@ and one using cinder volumes already attached
|
||||
centos7-2-iad-rackspace:
|
||||
provider: rackspace-iad
|
||||
size: general1-2
|
||||
block_volume: <volume id>
|
||||
boot_volume: <volume id>
|
||||
|
||||
# create the volume from a snapshot
|
||||
centos7-2-iad-rackspace:
|
||||
|
@ -2639,7 +2639,7 @@ def is_profile_configured(opts, provider, profile_name, vm_=None):
|
||||
elif driver == 'vmware' or linode_cloning:
|
||||
required_keys.append('clonefrom')
|
||||
elif driver == 'nova':
|
||||
nova_image_keys = ['image', 'block_device_mapping', 'block_device']
|
||||
nova_image_keys = ['image', 'block_device_mapping', 'block_device', 'boot_volume']
|
||||
if not any([key in provider_key for key in nova_image_keys]) and not any([key in profile_key for key in nova_image_keys]):
|
||||
required_keys.extend(nova_image_keys)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user