Make Cinder Auth Strategy configurable

Cinder supports both noauth and keystone auth mode. This patch adds
cinder_auth_strategy variable to have abililty to configure Cinder's
auth strategy

Change-Id: I7454c9340aff06628aa438301106f2ae8897765c
This commit is contained in:
Ivan Kolodyazhny 2017-04-18 16:14:13 +03:00 committed by Jimmy McCrory
parent 5c72bbb582
commit fe32f9f169
3 changed files with 8 additions and 1 deletions

View File

@ -137,6 +137,8 @@ cinder_service_v3_adminurl: "{{ cinder_service_adminuri }}/v3/%(tenant_id)s"
cinder_service_v3_internaluri: "{{ cinder_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
cinder_service_v3_internalurl: "{{ cinder_service_internaluri }}/v3/%(tenant_id)s"
cinder_auth_strategy: keystone
## Keystone authentication middleware
cinder_keystone_auth_plugin: "{{ cinder_keystone_auth_type }}"
cinder_keystone_auth_type: password

View File

@ -0,0 +1,5 @@
---
features:
- |
Added ``cinder_auth_strategy`` variable to configure Cinder's auth
strategy since Cinder can work in noauth mode as well.

View File

@ -11,7 +11,7 @@ osapi_volume_workers = {{ cinder_osapi_volume_workers }}
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_config = /etc/cinder/api-paste.ini
auth_strategy = keystone
auth_strategy = {{ cinder_auth_strategy }}
## Cinder API's enabled
enable_v1_api = {{ cinder_enable_v1_api }}