Merge "Include ceph_client role if needed"

This commit is contained in:
Jenkins 2017-07-13 21:08:43 +00:00 committed by Gerrit Code Review
commit 78cfcde3d8
3 changed files with 18 additions and 0 deletions

View File

@ -225,6 +225,8 @@ cinder_quota_backup_gigabytes: 1000
# cinder_backend_lvm_inuse: True if current host has an lvm backend
cinder_backend_lvm_inuse: '{{ (cinder_backends|default("")|to_json).find("lvm") != -1 }}'
# cinder_backend_rbd_inuse: True if the current host has an rbd backend
cinder_backend_rbd_inuse: '{{ (cinder_backends|default("")|to_json).find("cinder.volume.drivers.rbd.RBDDriver") != -1 }}'
## Policy vars
# Provide a list of access controls to update the default policy.json with. These changes will be merged

View File

@ -72,6 +72,18 @@
tags:
- cinder-config
- name: Include ceph_client role
include_role:
name: ceph_client
vars:
openstack_service_system_user: "{{ cinder_system_user_name }}"
openstack_service_venv_bin: "{{ cinder_bin }}"
when:
- "'cinder_volume' in group_names"
- "cinder_backend_rbd_inuse | bool"
tags:
- ceph
- name: Flush handlers
meta: flush_handlers

View File

@ -46,6 +46,10 @@
src: https://git.openstack.org/openstack/openstack-ansible-openstack_hosts
scm: git
version: master
- name: ceph_client
src: https://git.openstack.org/openstack/openstack-ansible-ceph_client
scm: git
version: master
- name: os_previous_cinder
src: https://git.openstack.org/openstack/openstack-ansible-os_cinder
scm: git