[Pure Storage] Add new params for FlashArray Cinder driver

Backport note to stable/wallaby:
Merge conflict resolved due to change in format of file.
Master uses `create_resources` and uses single quotes,
where stable/wallaby has not moved to that formatting yet.

Depends-On: Ia48fa3fa8ce3a3563fdab0966dc5a44f30248bc8
Change-Id: I9ab50d6c0835ea69044249f1cbbbf10f9b6a2498
(cherry picked from commit bb89515468)
This commit is contained in:
Simon Dodsley 2021-11-05 08:38:18 -04:00
parent 66936edd3e
commit 0721c18395
2 changed files with 19 additions and 7 deletions

View File

@ -40,13 +40,16 @@ class tripleo::profile::base::cinder::volume::pure (
if $step >= 4 {
$backend_defaults = {
'CinderPureAvailabilityZone' => hiera('cinder::backend::pure::backend_availability_zone', undef),
'CinderPureSanIp' => hiera('cinder::backend::pure::san_ip', undef),
'CinderPureAPIToken' => hiera('cinder::backend::pure::pure_api_token', undef),
'CinderPureStorageProtocol' => hiera('cinder::backend::pure::pure_storage_protocol', undef),
'CinderPureUseChap' => hiera('cinder::backend::pure::use_chap_auth', undef),
'CinderPureMultipathXfer' => hiera('cinder::backend::pure::use_multipath_for_image_xfer', undef),
'CinderPureImageCache' => hiera('cinder::backend::pure::image_volume_cache_enabled', undef),
'CinderPureAvailabilityZone' => hiera('cinder::backend::pure::backend_availability_zone', undef),
'CinderPureSanIp' => hiera('cinder::backend::pure::san_ip', undef),
'CinderPureAPIToken' => hiera('cinder::backend::pure::pure_api_token', undef),
'CinderPureStorageProtocol' => hiera('cinder::backend::pure::pure_storage_protocol', undef),
'CinderPureUseChap' => hiera('cinder::backend::pure::use_chap_auth', undef),
'CinderPureMultipathXfer' => hiera('cinder::backend::pure::use_multipath_for_image_xfer', undef),
'CinderPureImageCache' => hiera('cinder::backend::pure::image_volume_cache_enabled', undef),
'CinderPureIscsiCidr' => hiera('cinder::backend::pure::pure_iscsi_cidr', undef),
'CinderPureHostPersonality' => hiera('cinder::backend::pure::pure_host_personality', undef),
'CinderPureEradicateOnDelete' => hiera('cinder::backend::pure::pure_eradicate_on_delete', undef),
}
$backend_name.each |String $backend| {
@ -60,6 +63,9 @@ class tripleo::profile::base::cinder::volume::pure (
use_chap_auth => $backend_config['CinderPureUseChap'],
use_multipath_for_image_xfer => $backend_config['CinderPureMultipathXfer'],
image_volume_cache_enabled => $backend_config['CinderPureImageCache'],
pure_iscsi_cidr => $backend_config['CinderPureIscsiCidr'],
pure_host_personality => $backend_config['CinderPureHostPersonality'],
pure_eradicate_on_delete => $backend_config['CinderPureEradicateOnDelete'],
}
}
}

View File

@ -0,0 +1,6 @@
---
features:
- |
Added support for host personality, iSCSI CIDR and
eradicate on delete parameters for Pure Storage
FlashArray Cinder backend.