charm-rabbitmq-server/hooks/rabbit_net_utils.py
Liam Young 9d3bb3e3d0 Add support for certs relation
Add support for rabbitmq using the certificates relation
to secure traffic with clients. Support for users supplying
their own certs and for rabbit acting as its own Certificate
Authority should be unchanged. The follwoing additional changes
were needed:

* Charm helper sync
* Update rabbit to use get_relation_ip from charm helpers which
  is the standard helper for calculating endpoint ip addresses.
* Create network helpers file to avoid circular dependancies.

Change-Id: Ie60893e660efe1f8b0a0d42aaaecfbd9aae6f97c
2018-10-29 17:11:50 +00:00

19 lines
713 B
Python

# Copyright 2018 Canonical Ltd
#
# 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.
AMQP_OVERRIDE_CONFIG = 'access-network'
CLUSTER_OVERRIDE_CONFIG = 'cluster-network'
AMQP_INTERFACE = 'amqp'
CLUSTER_INTERFACE = 'cluster'