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>
69 lines
2.9 KiB
YAML
69 lines
2.9 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"
|
|
|
|
# NOTE(noonedeadpunk): While there are no repository for EL10, EL9 keeps
|
|
# working just fine, as it's pretty much self-contained.
|
|
# Once there is EL10-specific repo, patch introducting this comment
|
|
# can be reverted.
|
|
_rabbitmq_erlang_package_dist_tag: "el9"
|
|
|
|
# NOTE(noonedeadpunk): List of available packages can be searched here: https://cloudsmith.io/~rabbitmq/repos/
|
|
_rabbitmq_repo_url: "https://yum1.rabbitmq.com/rabbitmq/el/9/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: true
|
|
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/9/$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: true
|
|
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
|
|
- util-linux
|
|
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"
|
|
- util-linux
|
|
|
|
rabbitmq_distro_packages: "{{ rabbitmq_distro_packages_mapping[rabbitmq_install_method] }}"
|
|
|
|
rabbitmq_distro_extras_repo:
|
|
- centos-release-rabbitmq-*
|