openstack-ansible-rabbitmq_.../vars/debian.yml
Dmitriy Rabotyagov 2f686f4bfd Fail in when installing RabbitMQ/Erlang versions not possible
Current behaviour with just pinning on Ubuntu/Debian leads to potential
situations, when there's no selected version available in repo to
proceed with what's available based on set priorities.

Instead, it might be worth to fail explicitly when requested version is
not available. This also aligns behaviour with EL distros.

Change-Id: Iad69cc4b5f8ca40246bcbc604e77eef7975eb104
2024-10-09 10:01:35 +02:00

51 lines
2.3 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.13.7-1"
_rabbitmq_erlang_package_version: "26.2.*-1"
_rabbitmq_repo_url: "https://ppa1.rabbitmq.com/rabbitmq/rabbitmq-server/deb/{{ ansible_facts['distribution'] | lower }}"
_rabbitmq_repo:
- name: "RabbitMQ"
suites: "{{ ansible_facts['distribution_release'] | lower }}"
uris: "{{ rabbitmq_repo_url }}"
signed_by: "{{ lookup('file', 'gpg/C072C960') }}"
components: main
architectures: "{{ rabbitmq_architecture_mapping.get(ansible_facts['architecture']) }}"
state: "{{ (rabbitmq_install_method == 'external_repo') | ternary('present', 'absent') }}"
_rabbitmq_erlang_repo_url: "https://ppa1.rabbitmq.com/rabbitmq/rabbitmq-erlang/deb/{{ ansible_facts['distribution'] | lower }}"
_rabbitmq_erlang_repo:
- name: "els_erlang"
suites: "{{ ansible_facts['distribution_release'] | lower }}"
uris: "{{ rabbitmq_erlang_repo_url }}"
signed_by: "{{ lookup('file', 'gpg/A16A4251') }}"
components: main
architectures: "{{ rabbitmq_architecture_mapping.get(ansible_facts['architecture']) }}"
state: "{{ (rabbitmq_install_method == 'external_repo') | ternary('present', 'absent') }}"
_rabbitmq_erlang_version_spec: "{{ (rabbitmq_install_method == 'external_repo') | ternary('=1:' ~ rabbitmq_erlang_package_version, '') }}"
rabbitmq_dependencies:
- "erlang-base{{ _rabbitmq_erlang_version_spec }}"
- "erlang-diameter{{ _rabbitmq_erlang_version_spec }}"
- "erlang-eldap{{ _rabbitmq_erlang_version_spec }}"
- "erlang-nox{{ _rabbitmq_erlang_version_spec }}"
- socat
rabbitmq_distro_packages:
- "rabbitmq-server{{ (rabbitmq_install_method == 'external_repo') | ternary('=' ~ rabbitmq_package_version, '') }}"