Add support for the Ceph storage driver in Gnocchi

This commit adds support for the ceph_client role to be run on the
Gnocchi containers. The role will only setup the Ceph client in these
containers when `gnocchi_storage_driver` is set to `ceph`.

Change-Id: I7cd717c81ec4e9e0db6d74e645c83b426d3503cf
This commit is contained in:
Paulo Matias 2016-09-21 21:11:58 -03:00
parent 4886213c8d
commit 5733209bc4
3 changed files with 16 additions and 1 deletions

View File

@ -66,10 +66,11 @@ ceph_mons: []
# auth_service_required = cephx
# auth_client_required = cephx
# Ceph client usernames for glance and cinder+nova
# Ceph client usernames for glance, cinder+nova and gnocchi
glance_ceph_client: glance
cinder_ceph_client: cinder
cinder_backup_ceph_client: cinder-backup
gnocchi_ceph_client: gnocchi
# by default we assume you use rbd for both cinder and nova, and as libvirt
# needs to access both volumes (cinder) as boot disks (nova) we default to
@ -93,3 +94,7 @@ ceph_nova_service_names:
ceph_glance_service_names:
- glance-api
ceph_gnocchi_service_names:
- gnocchi-api
- gnocchi-metricd

View File

@ -24,6 +24,10 @@
(inventory_hostname in groups['nova_compute']
and (cinder_backends_rbd_inuse|bool or
nova_libvirt_images_rbd_pool is defined))
or
(inventory_hostname in groups['gnocchi_api']
and gnocchi_storage_driver is defined
and gnocchi_storage_driver == 'ceph')
tags:
- ceph-client

View File

@ -48,4 +48,10 @@ ceph_components:
client:
- '{{ nova_ceph_client }}'
service: '{{ ceph_nova_service_names }}'
- component: gnocchi_api
package:
- python-ceph
client:
- '{{ gnocchi_ceph_client }}'
service: '{{ ceph_gnocchi_service_names }}'