Pass rabbitmq apt preferences into kolla-toolbox

If the latest and targeted rabbitmq-server dependencies mismatch,
kolla-toolbox will fail to build.

Closes-Bug: #2066171
Change-Id: I64e9442545d98364585e3c632ae9142cd6b4f9bf
(cherry picked from commit 006ccee101)
This commit is contained in:
Matt Crees 2024-05-20 14:29:01 +01:00
parent 4936a6ff98
commit 14081a8251
4 changed files with 14 additions and 0 deletions

View File

@ -18,6 +18,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.enable_extra_repos(['crb', 'erlang', 'openvswitch', 'rabbitmq']) }}
{% block rabbitmq_apt_preferences %}
{% if base_package_type == 'deb' %}
COPY apt_preferences_rabbitmq.{{ base_distro }} /etc/apt/preferences.d/rabbitmq
{% endif %}
{% endblock %}
{% if base_package_type == 'rpm' %}
{% set kolla_toolbox_packages = [
'crudini',

View File

@ -0,0 +1 @@
../rabbitmq/apt_preferences_rabbitmq.debian

View File

@ -0,0 +1 @@
../rabbitmq/apt_preferences_rabbitmq.debian

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes an issue where kolla-toolbox will fail to build due to mismatched
rabbitmq-server dependencies.
`LP#2066171 <https://launchpad.net/bugs/2066171>`__