99e70d97ea
For usecase with Trove, it is important that rabbit listen on dbaas interface, which is not the case with current setup. That from other side exposes risk of listening on not intended interfaces, but we assume that no "wrong" networks should be passed inside RabbitMQ containers. Change-Id: I1559e63e8cf1c767dc2d14940f0d04d52a372242
35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
---
|
|
# Copyright 2016, 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.
|
|
|
|
rabbitmq_port_bindings: |-
|
|
{%- set _rabbitmq_port_bindings = {'ssl_listeners': {}, 'tcp_listeners': {}} %}
|
|
{%- for network, data in container_networks.items() %}
|
|
{%- if 'address' in data %}
|
|
{%- set _ = _rabbitmq_port_bindings['ssl_listeners'].update({ container_networks[network]['address']: '5671' }) %}
|
|
{%- set _ = _rabbitmq_port_bindings['tcp_listeners'].update({ container_networks[network]['address']: '5672' }) %}
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
{{ _rabbitmq_port_bindings }}
|
|
|
|
rabbitmq_management_bind_address: "{{ management_address }}"
|
|
|
|
rabbitmq_cluster_name: openstack
|
|
|
|
# Ensure that the package state matches the global setting
|
|
rabbitmq_package_state: "{{ rabbitmq_upgrade | default(False) | bool | ternary('latest', 'present') }}"
|
|
|
|
# Ensure that all rabbitmq containers get a fixed mac address
|
|
lxc_container_fixed_mac: true
|