Merge "Compartmentalizing RabbitMQ"
This commit is contained in:
commit
70825817bf
@ -38,6 +38,10 @@ nova_db_max_overflow: 10
|
||||
nova_db_max_pool_size: 120
|
||||
nova_db_pool_timeout: 30
|
||||
|
||||
## RabbitMQ info
|
||||
nova_rabbitmq_userid: nova
|
||||
nova_rabbitmq_vhost: /nova
|
||||
|
||||
## RPC
|
||||
nova_rpc_backend: nova.openstack.common.rpc.impl_kombu
|
||||
nova_rpc_thread_pool_size: 64
|
||||
|
37
tasks/nova_messaging_setup.yml
Normal file
37
tasks/nova_messaging_setup.yml
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
# Copyright 2014, Rackspace US, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Ensure Rabbitmq vhost
|
||||
rabbitmq_vhost:
|
||||
name: "{{ nova_rabbitmq_vhost }}"
|
||||
state: "present"
|
||||
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
|
||||
tags:
|
||||
- nova-rabbitmq
|
||||
- nova-rabbitmq-vhost
|
||||
|
||||
- name: Ensure rabbitmq user
|
||||
rabbitmq_user:
|
||||
user: "{{ nova_rabbitmq_userid }}"
|
||||
password: "{{ nova_rabbitmq_password }}"
|
||||
vhost: "{{ nova_rabbitmq_vhost }}"
|
||||
configure_priv: ".*"
|
||||
read_priv: ".*"
|
||||
write_priv: ".*"
|
||||
state: "present"
|
||||
delegate_to: "{{ groups['rabbitmq_all'][0] }}"
|
||||
tags:
|
||||
- nova-rabbitmq
|
||||
- nova-rabbitmq-user
|
@ -109,3 +109,7 @@
|
||||
tags:
|
||||
- sudoers
|
||||
- nova-sudoers
|
||||
|
||||
- include: nova_messaging_setup.yml
|
||||
when: >
|
||||
inventory_hostname == groups['nova_all'][0]
|
||||
|
@ -226,10 +226,10 @@ lock_path = /var/lock/nova
|
||||
|
||||
|
||||
[oslo_messaging_rabbit]
|
||||
amqp_auto_delete = False
|
||||
rabbit_port = {{ rabbitmq_port }}
|
||||
rabbit_userid = {{ rabbitmq_userid }}
|
||||
rabbit_password = {{ rabbitmq_password }}
|
||||
rabbit_userid = {{ nova_rabbitmq_userid }}
|
||||
rabbit_password = {{ nova_rabbitmq_password }}
|
||||
rabbit_virtual_host = {{ nova_rabbitmq_vhost }}
|
||||
rabbit_hosts = {{ rabbitmq_servers }}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user