From 458a67535a0521471175cf3241a12be409170d1e Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Thu, 31 Mar 2016 14:23:00 +0100 Subject: [PATCH] Provide Nova & Cinder the Glance API Servers Currently the Nova and Cinder roles require the Glance API server list, but use variables outside of their namespace. This is not good practise. This sets up namespaced group_vars for use by both roles. The Cinder role already expects the var [1], but a follow-on patch will be submitted to the Nova role to also adjust its pattern. [1] https://review.openstack.org/290856 Change-Id: I31b06aad686fcc32d55c78147e3d5d099b8cc5b9 --- playbooks/inventory/group_vars/hosts.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/inventory/group_vars/hosts.yml b/playbooks/inventory/group_vars/hosts.yml index 8127c921a4..ca5bad8a2c 100644 --- a/playbooks/inventory/group_vars/hosts.yml +++ b/playbooks/inventory/group_vars/hosts.yml @@ -146,6 +146,7 @@ nova_dhcp_domain: "{{ dhcp_domain }}" nova_service_in_ldap: "{{ service_ldap_backend_enabled }}" nova_rabbitmq_userid: nova nova_rabbitmq_vhost: /nova +nova_glance_api_servers: "{{ glance_api_servers }}" ## Neutron @@ -252,6 +253,7 @@ cinder_service_region: "{{ service_region }}" cinder_service_in_ldap: "{{ service_ldap_backend_enabled }}" cinder_rabbitmq_userid: cinder cinder_rabbitmq_vhost: /cinder +cinder_glance_api_servers: "{{ glance_api_servers }}" cinder_glance_api_version: "{{ (cinder_backends_rbd_inuse|bool and glance_default_store == 'rbd') | ternary('2','1') }}"