Files
openstack-ansible-rabbitmq_…/vars/debian.yml
Dmitriy Rabotyagov afd97faec1 Use cloudsmith repo for rabbit and erlang
Switch to using cloudsmith repo as a source for rabbitmq and erlang.

This allows us to be consistent about repository that is
used across supported distributions along with switching from
unreliable erlang-solutions that tend to fail periodically.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-tests/+/861831
Change-Id: Ia438ee3b0aa1ba95aff014776e936516b83181ec
(cherry picked from commit 4ab856bfef)
2022-10-19 09:13:27 +00:00

58 lines
2.5 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_url: "https://packagecloud.io/rabbitmq/rabbitmq-server/packages/{{ ansible_distribution | lower }}/{{ ansible_distribution_release | lower }}/rabbitmq-server_3.8.14-1_all.deb/download.deb"
_rabbitmq_package_version: "{{ rabbitmq_package_url.split('/')[-2].split('_')[1] }}"
_rabbitmq_release_version: "{{ rabbitmq_package_version.split('-')[0] }}"
_rabbitmq_package_sha256: "53ee653c2cbf4c3f703afa4b58073e0d049881c7e66bc74e4f533f7a9042cc4d"
_rabbitmq_package_path: "/opt/rabbitmq-server.deb"
_rabbitmq_gpg_keys:
- file: gpg/C072C960 # RabbitMQ Cloudsmith repo
- file: gpg/A16A4251 # Erlang Cloudsmith repo
- file: gpg/0A9AF211 # RabbitMQ Release Signing Key
# NOTE(noonedeadpunk): List of available packages can be searched here: https://cloudsmith.io/~rabbitmq/repos/
_rabbitmq_repo_url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/{{ ansible_distribution | lower }}"
_rabbitmq_repo:
repo: "deb {{ rabbitmq_repo_url }} {{ ansible_distribution_release | lower }} main"
state: "present"
filename: "RabbitMQ"
_rabbitmq_erlang_repo_url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/{{ ansible_distribution | lower }}"
_rabbitmq_erlang_repo:
repo: "deb {{ rabbitmq_erlang_repo_url }} {{ ansible_distribution_release | lower }} main"
state: "present"
filename: els_erlang
_rabbitmq_erlang_version_spec: "{{ (rabbitmq_install_method == 'external_repo') | ternary('1:23.3.4.15-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