Files
openstack-ansible-rabbitmq_…/vars/debian.yml
Dmitriy Rabotyagov e346e79ed3 Ensure su/runuser is installed for rabbitmq
su/runuser is required for some rabbitmqctl commands, thus
let's ensure they're present for all cases.

This intends to fix CentOS 10 Stream molecule jobs at the first place.

Change-Id: I4fe224b471eff483b442d0256da49f32440549ec
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/957859
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
2025-08-19 09:48:29 +00:00

50 lines
2.2 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_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
- util-linux
rabbitmq_distro_packages:
- "rabbitmq-server{{ (rabbitmq_install_method == 'external_repo') | ternary('=' ~ rabbitmq_package_version, '') }}"