Add variable to enable integration with barbican

Add a new variable, 'cinder_barbican_enabled', that will handle setting
the configuration options required to make use of barbican.

Change-Id: If9aaa19bff5be25c46df067387ef83ce81d14ca1
This commit is contained in:
Jimmy McCrory 2017-01-30 17:08:30 -08:00
parent 492e2394d4
commit 1f787a05a7
2 changed files with 10 additions and 2 deletions

View File

@ -33,6 +33,9 @@ cinder_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin"
cinder_venv_download: "{{ not cinder_developer_mode | bool }}"
cinder_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/cinder.tgz
# Enable/Disable Barbican
cinder_barbican_enabled: False
# Enable/Disable Ceilometer
cinder_ceilometer_enabled: False

View File

@ -126,8 +126,13 @@ profiler_enabled = {{ cinder_profiler_enabled }}
trace_sqlalchemy = {{ cinder_profiler_trace_sqlalchemy }}
hmac_keys = {{ cinder_profiler_hmac_key }}
[keymgr]
encryption_auth_url = {{ keystone_service_internaluri }}/v3
{% if cinder_barbican_enabled %}
[barbican]
auth_endpoint = {{ keystone_service_internaluri }}/v3
[key_manager]
api_class = castellan.key_manager.barbican_key_manager.BarbicanKeyManager
{% endif %}
[keystone_authtoken]
insecure = {{ keystone_service_internaluri_insecure | bool }}