Move ceph client role to playbooks for faster run time

The change will limit the hosts the ceph client role is executed against
by checking the ceph conditionals before simply executing the role.
This will help general run times especially on large scale clouds.

Change-Id: Ic7130368c5a2bb231c35bb459a2bebaa28a5a968
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter
2017-02-27 12:44:29 -06:00
parent c33735ec3e
commit f517b14cff
4 changed files with 16 additions and 3 deletions

View File

@@ -103,6 +103,9 @@
- role: "ceph_client"
openstack_service_system_user: "{{ cinder_system_user_name }}"
openstack_service_venv_bin: "{{ cinder_bin }}"
when:
- inventory_hostname in groups['cinder_volume']
- cinder_backend_rbd_inuse | default(false) | bool
tags:
- ceph
- role: "rsyslog_client"

View File

@@ -70,14 +70,17 @@
- include: common-tasks/package-cache-proxy.yml
roles:
- role: "os_glance"
- role: "openstack_openrc"
tags:
- openrc
- role: "ceph_client"
openstack_service_system_user: "{{ glance_system_user_name }}"
openstack_service_venv_bin: "{{ glance_bin }}"
when:
- inventory_hostname in groups['glance_api']
- (glance_default_store | default('none') | lower == 'rbd')
tags:
- ceph
- role: "openstack_openrc"
tags:
- openrc
- role: "rsyslog_client"
rsyslog_client_log_rotate_file: glance_log_rotate
rsyslog_client_log_dir: "/var/log/glance"

View File

@@ -46,6 +46,9 @@
- role: "ceph_client"
openstack_service_system_user: "{{ gnocchi_system_user_name }}"
openstack_service_venv_bin: ""
when:
- inventory_hostname in groups['gnocchi_api']
- (gnocchi_storage_driver | default('none') | lower == 'ceph')
tags:
- ceph
- role: "os_gnocchi"

View File

@@ -147,6 +147,10 @@
- role: "ceph_client"
openstack_service_system_user: "{{ nova_system_user_name }}"
openstack_service_venv_bin: "{{ nova_bin }}"
when:
- inventory_hostname in groups['nova_compute']
- nova_libvirt_images_rbd_pool is defined or
cinder_backends_rbd_inuse | default(false) | bool
tags:
- ceph
- role: "openstack_openrc"