Do not setup messaging vhost and user when Rabbit is not installed

When RabbitMQ is not installed by OSA, because a deployer is using an
existing RabbitMQ installation, or because it is not needed
(eg. Standalone Swift), then do not setup messaging vhost and user for
the various services.

Change-Id: Ia35c877939cb3d4a6b0d792165af8729a7062a6e
This commit is contained in:
Byron McCollum 2016-03-04 08:52:30 -06:00
parent f60bd1061d
commit 65061307c0
8 changed files with 16 additions and 0 deletions

View File

@ -67,6 +67,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['aodh_api'][0]
- groups['rabbitmq_all']|length > 0
tags:
- aodh-rabbitmq
- aodh-rabbitmq-vhost
@ -82,6 +83,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['aodh_api'][0]
- groups['rabbitmq_all']|length > 0
tags:
- aodh-rabbitmq
- aodh-rabbitmq-user

View File

@ -78,6 +78,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['ceilometer_api'][0]
- groups['rabbitmq_all']|length > 0
tags:
- ceilometer-rabbitmq
- ceilometer-rabbitmq-vhost
@ -93,6 +94,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['ceilometer_api'][0]
- groups['rabbitmq_all']|length > 0
tags:
- ceilometer-rabbitmq
- ceilometer-rabbitmq-user

View File

@ -119,6 +119,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['cinder_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- cinder-rabbitmq
- cinder-rabbitmq-vhost
@ -134,6 +135,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['cinder_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- cinder-rabbitmq
- cinder-rabbitmq-user

View File

@ -95,6 +95,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['glance_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- glance-rabbitmq
- glance-rabbitmq-vhost
@ -110,6 +111,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['glance_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- glance-rabbitmq
- glance-rabbitmq-user

View File

@ -78,6 +78,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['heat_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- heat-rabbitmq
- heat-rabbitmq-vhost
@ -93,6 +94,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['heat_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- heat-rabbitmq
- heat-rabbitmq-user

View File

@ -95,6 +95,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['keystone_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- keystone-rabbitmq
- keystone-rabbitmq-vhost
@ -110,6 +111,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['keystone_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- keystone-rabbitmq
- keystone-rabbitmq-user

View File

@ -97,6 +97,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['neutron_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- neutron-rabbitmq
- neutron-rabbitmq-vhost
@ -112,6 +113,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['neutron_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- neutron-rabbitmq
- neutron-rabbitmq-user

View File

@ -130,6 +130,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['nova_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- nova-rabbitmq
- nova-rabbitmq-vhost
@ -145,6 +146,7 @@
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
when:
- inventory_hostname == groups['nova_all'][0]
- groups['rabbitmq_all']|length > 0
tags:
- nova-rabbitmq
- nova-rabbitmq-user