aboutsummaryrefslogtreecommitdiff
path: root/kolla/template/methods.py
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2023-09-27 08:12:10 +0000
committerMichal Nasiadka <mnasiadka@gmail.com>2023-09-29 04:58:34 +0000
commit47b593d1e5531c693dde3e111ed3be91c60c41be (patch)
treef489b1b07e3332e9305b0c05d8f54b56b3344d5e /kolla/template/methods.py
parent95a191e207b1e34fb9a26d8e1909153c0956e18a (diff)
downloadkolla-47b593d1e5531c693dde3e111ed3be91c60c41be.tar.gz
kolla-47b593d1e5531c693dde3e111ed3be91c60c41be.zip
rabbitmq: Use novemberain repos for Debian/Ubuntu
CloudSmith is over budget, see [1]. As mentionedin in [2] - we're using amd64 packages on aarch64, since the community mirror does not mirror aarch64 - and the packages should be really marked as noarch. [1]: https://github.com/rabbitmq/rabbitmq-server/discussions/9526 [2]: https://github.com/rabbitmq/rabbitmq-server/discussions/9553 Closes-Bug: #2037469 Change-Id: I83179ce5d53fed6cfe7f5fcbf6fdecd7199baa36
Diffstat (limited to 'kolla/template/methods.py')
-rw-r--r--kolla/template/methods.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kolla/template/methods.py b/kolla/template/methods.py
index 6b647de65..1a5926702 100644
--- a/kolla/template/methods.py
+++ b/kolla/template/methods.py
@@ -127,6 +127,10 @@ def handle_repos(context, reponames, mode):
&& echo 'Signed-By: /etc/kolla/apt-keys/{repo_list[repo]['gpg_key']}' \
>>/etc/apt/sources.list.d/{repo}.sources \
&& """
+ if repo_list[repo]['arch']:
+ commands += f"""echo 'Architectures: {repo_list[repo]['arch']}' \
+>>/etc/apt/sources.list.d/{repo}.sources \
+&& """
except KeyError:
# NOTE(hrw): we ignore missing repositories for a given
# distro/arch