From a5b5e24f4a4e8836653013457e0ff863cf79c400 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Tue, 11 Jun 2024 17:08:49 -0400 Subject: [PATCH] 21572: Support modules in Red Hat package setup Arvados-DCO-1.1-Signed-off-by: Brett Smith --- doc/_includes/_setup_redhat_repo.liquid | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/_includes/_setup_redhat_repo.liquid b/doc/_includes/_setup_redhat_repo.liquid index d83490d48d..8fd82e88a6 100644 --- a/doc/_includes/_setup_redhat_repo.liquid +++ b/doc/_includes/_setup_redhat_repo.liquid @@ -3,9 +3,17 @@ Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: CC-BY-SA-3.0 -packages_to_install may be a space-separated string +modules_to_enable and packages_to_install may be space-separated strings {% endcomment %} +{%- if modules_to_enable != nil %} +{% include 'notebox_begin_warning' %} + +Arvados tools require newer language runtimes than the default versions included with these distributions. These instructions will **upgrade language runtimes for the entire system**. Check that won't interfere with any existing software before you proceed. + +{% include 'notebox_end' %} +{% endif -%} + Set up the Arvados package repository {%- if packages_to_install == nil %} {%- elsif packages_to_install contains " " %} and install the packages @@ -20,7 +28,10 @@ baseurl=http://rpm.arvados.org/CentOS/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://rpm.arvados.org/CentOS/RPM-GPG-KEY-arvados EOF -{%- if packages_to_install != nil %} +{%- if modules_to_enable != nil %} +# dnf module enable {{ modules_to_enable }} +{% endif -%} +{%- if packages_to_install != nil -%} # dnf install {{ packages_to_install }} {% endif -%} -- 2.30.2