Add group vars to enable integration with barbican

Add group variables, 'nova_barbican_enabled' and
'cinder_barbican_enabled', that will be set dependent on the
availability of barbican hosts within an environment and enable
integration of barbican with nova and cinder.

Change-Id: I52dd6dc5f83d2e1288f565c03c0337cf0ae00ace
Depends-On: If9aaa19bff5be25c46df067387ef83ce81d14ca1
Depends-On: I61eddc831825a9274ff26caf62da44798336e99d
This commit is contained in:
Jimmy McCrory 2017-01-30 17:42:18 -08:00
parent e63a453785
commit 60351bc2b6
2 changed files with 5 additions and 0 deletions

View File

@ -388,6 +388,8 @@ nova_rabbitmq_telemetry_host_group: "{{ nova_rabbitmq_host_group }}"
nova_designate_enabled: "{{ (groups['designate_all'] is defined) and (groups['designate_all'] | length > 0) }}" nova_designate_enabled: "{{ (groups['designate_all'] is defined) and (groups['designate_all'] | length > 0) }}"
# If there are any Ceilometer hosts in the environment, then enable its usage # If there are any Ceilometer hosts in the environment, then enable its usage
nova_ceilometer_enabled: "{{ (groups['ceilometer_all'] is defined) and (groups['ceilometer_all'] | length > 0) }}" nova_ceilometer_enabled: "{{ (groups['ceilometer_all'] is defined) and (groups['ceilometer_all'] | length > 0) }}"
# If there are any Barbican hosts in the environment, then enable its usage
nova_barbican_enabled: "{{ (groups['barbican_all'] is defined) and (groups['barbican_all'] | length > 0) }}"
## Sahara ## Sahara
#RPC #RPC

View File

@ -36,3 +36,6 @@ cinder_package_state: "{{ package_state }}"
cinder_venv_tag: "{{ venv_tag }}" cinder_venv_tag: "{{ venv_tag }}"
cinder_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin" cinder_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin"
cinder_venv_download_url: "{{ venv_base_download_url }}/cinder-{{ openstack_release }}-{{ ansible_architecture | lower }}.tgz" cinder_venv_download_url: "{{ venv_base_download_url }}/cinder-{{ openstack_release }}-{{ ansible_architecture | lower }}.tgz"
# If there are any Barbican hosts in the environment, then enable its usage
cinder_barbican_enabled: "{{ (groups['barbican_all'] is defined) and (groups['barbican_all'] | length > 0) }}"