8cdf2cf51e
We are aligned on used RabbitMQ/Erlang versions for quite a while now so it makes sense to move version defenition to defaults instead of carrying them separately per distro family. Change-Id: I5ca75bf25d099260bc446a6b4f7d9be7a2bdde58
63 lines
2.7 KiB
YAML
63 lines
2.7 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
|
|
|
|
# NOTE(nhanlon) 2023-05-30: although the package repository is marked
|
|
# el9, the packages themselves still have an el8 dist tag for rabbitmq
|
|
_rabbitmq_package_dist_tag: "el8"
|
|
|
|
_rabbitmq_erlang_package_dist_tag: "el{{ ansible_facts['distribution_major_version'] }}"
|
|
|
|
# NOTE(noonedeadpunk): List of available packages can be searched here: https://cloudsmith.io/~rabbitmq/repos/
|
|
_rabbitmq_repo_url: "https://yum1.rabbitmq.com/rabbitmq/el/{{ ansible_facts['distribution_major_version'] | lower }}/noarch"
|
|
_rabbitmq_repo:
|
|
name: rabbitmq_rabbitmq-server
|
|
description: "RabbitMQ Server Rolling Repository"
|
|
baseurl: "{{ rabbitmq_repo_url }}"
|
|
filename: RabbitMQ
|
|
state: "{{ (rabbitmq_install_method == 'external_repo') | ternary('present', 'absent') }}"
|
|
gpgcheck: yes
|
|
gpgkey:
|
|
- https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
|
|
- https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key
|
|
|
|
# NOTE(noonedeadpunk): List of available packages can be searched here: https://cloudsmith.io/~rabbitmq/repos/
|
|
_rabbitmq_erlang_repo_url: "https://yum1.rabbitmq.com/erlang/el/{{ ansible_facts['distribution_major_version'] | lower }}/$basearch"
|
|
_rabbitmq_erlang_repo:
|
|
name: rabbitmq_els-erlang
|
|
description: "RabbitMQ Erlang Packages"
|
|
baseurl: "{{ rabbitmq_erlang_repo_url }}"
|
|
filename: els-erlang
|
|
state: "{{ (rabbitmq_erlang_install_method == 'external_repo') | ternary('present', 'absent') }}"
|
|
gpgcheck: yes
|
|
gpgkey:
|
|
- https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key
|
|
- https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
|
|
|
|
rabbitmq_distro_packages_mapping:
|
|
distro:
|
|
- openssl
|
|
- rabbitmq-server
|
|
external_repo:
|
|
- openssl
|
|
- "erlang-{{ rabbitmq_erlang_package_version }}.{{ _rabbitmq_erlang_package_dist_tag }}.{{ ansible_facts['architecture'] }}"
|
|
- "rabbitmq-server-{{ rabbitmq_package_version }}.{{ _rabbitmq_package_dist_tag }}.noarch"
|
|
|
|
rabbitmq_distro_packages: "{{ rabbitmq_distro_packages_mapping[rabbitmq_install_method] }}"
|
|
|
|
rabbitmq_distro_extras_repo:
|
|
- centos-release-rabbitmq-*
|