37c9bc026e
This unifies the way of rabbitmq installation across all distros. Also includes reno for deprecation of file installation method. Change-Id: Idcf2d298e2808ef7b1a2160fc94cd6c1b5929182
51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
---
|
|
# Copyright 2016, Walmart Stores, 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_install_method: external_repo
|
|
_rabbitmq_package_version: "3.8.3-1"
|
|
|
|
_rabbitmq_gpg_keys:
|
|
- file: gpg/4D206F89
|
|
- file: gpg/A14F4FCA
|
|
|
|
_rabbitmq_repo_url: "https://packagecloud.io/rabbitmq/rabbitmq-server/{{ ansible_distribution | lower }}"
|
|
_rabbitmq_repo:
|
|
repo: "deb {{ rabbitmq_repo_url }} {{ ansible_distribution_release | lower }} main"
|
|
state: "present"
|
|
filename: "RabbitMQ"
|
|
|
|
_rabbitmq_erlang_repo_url: "https://packages.erlang-solutions.com/{{ ansible_distribution | lower }}"
|
|
_rabbitmq_erlang_repo:
|
|
repo: "deb {{ rabbitmq_erlang_repo_url }} {{ ansible_distribution_release | lower }} contrib"
|
|
state: "present"
|
|
filename: els_erlang
|
|
|
|
_rabbitmq_erlang_version_spec: "{{ (rabbitmq_install_method == 'external_repo') | ternary('22.3-1', '1:22.*') }}"
|
|
|
|
_rabbitmq_distro_dependencies:
|
|
- "{{ (ansible_architecture == 'aarch64') | ternary('erlang-base', 'erlang-base-hipe') }}"
|
|
- erlang-diameter
|
|
- erlang-eldap
|
|
- erlang-nox
|
|
- socat
|
|
|
|
_rabbitmq_external_dependencies:
|
|
- erlang
|
|
|
|
rabbitmq_dependencies: "{{ (rabbitmq_install_method == 'external_repo') | ternary(_rabbitmq_external_dependencies, _rabbitmq_distro_dependencies) }}"
|
|
|
|
rabbitmq_distro_packages:
|
|
- rabbitmq-server
|