From patchwork Sat Dec 14 17:01:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13908529 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC9C228F1 for ; Sat, 14 Dec 2024 17:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734195703; cv=none; b=tb69VqyAOUZvhskPzhgNUUR4Wu08rpLsQAkouXFaqi9aNrXseDiFQCCaB/EutPdA27+3wlss4KTVuBo1XmMiHfewpNnaJiHofgSDHVMKjxEWR8HXwkDjX2O9kmog8Z58NWpogXSuCLoFy4oAW+AgfUma3oPJt8HXurWqr0GkyEE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734195703; c=relaxed/simple; bh=ONcjAAddrgtYQL8ioBhyJyQBkI8r477FM2PXsQmJhZc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QXq+807/2dWqQGqFOGHNiGIFuok+ZYkqK9C22kRk4KK8XipmMmaF/+vHMJN5ry/ErHayUsoa8juUEwxd6rwqlYsUNEjcq1RYOF/UC0+B28rXdTJU0EQecAoUrYTkz9+U7uNsJVh4NSjcPUuaio8aZEooOb8yNoD8xYzbto0uNBY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gVVGPgCD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gVVGPgCD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24D99C4CEE0; Sat, 14 Dec 2024 17:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734195703; bh=ONcjAAddrgtYQL8ioBhyJyQBkI8r477FM2PXsQmJhZc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gVVGPgCDDz7EiwQs8NOZ05oEKj6O6H4n+RrFsJ/Sy/4atbEflqIbpjS2u8Laz+Mf2 r0+klKZW6bTD7+Cz/hyIQsbhH6omF8wnH65CSqniwzo+p4jNWvoFm238K0SysmaU78 p+rYA4pNMTbMGRSUSB/XR84G0wPnNmkGVMkC2PrqO4+y1CPk9wD5hPCJXQQqFDAQwM Azxkl6sLVvjm2erB9ynBXdakCT/mFNQBQD9ppMm5d5FYCk2U+BJ/fLgRJSOHYxAZah kkTkYx+VDsI2j1tyjFG0kqZdIIvnVoA06UD1sqzeIOp6J9lVVGkZ7WPbt+XUIul8DU sZpyJP5gepGGg== From: cel@kernel.org To: Cc: Anna Schumaker , Chuck Lever Subject: [PATCH v2 3/3] codereadyrepo: Enable codeready-builder for AWS's RHEL 9 Date: Sat, 14 Dec 2024 12:01:39 -0500 Message-ID: <20241214170139.253602-4-cel@kernel.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241214170139.253602-1-cel@kernel.org> References: <20241214170139.253602-1-cel@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chuck Lever When running the pynfs workflow with target nodes in AWS, "make pynfs" fails with: Error: No matching repo to modify: codeready-builder-for-rhel-9-x86_64-rpms. Adjust the logic in the codereadyrepo playbook to sketch in what is needed for running the pynfs workflow in AWS. Similar adjustments are likely to be necessary for other cloud providers and for other distibutions. Signed-off-by: Chuck Lever --- playbooks/roles/codereadyrepo/defaults/main.yml | 6 ++++++ playbooks/roles/codereadyrepo/tasks/main.yml | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 playbooks/roles/codereadyrepo/defaults/main.yml diff --git a/playbooks/roles/codereadyrepo/defaults/main.yml b/playbooks/roles/codereadyrepo/defaults/main.yml new file mode 100644 index 000000000000..131f26ed510a --- /dev/null +++ b/playbooks/roles/codereadyrepo/defaults/main.yml @@ -0,0 +1,6 @@ +# SPDX-License-Identifier GPL-2.0+ +--- +# Our sensible defaults for the codereadyrepo role. + +kdevops_enable_terraform: false +kdevops_enable_guestfs: false diff --git a/playbooks/roles/codereadyrepo/tasks/main.yml b/playbooks/roles/codereadyrepo/tasks/main.yml index b1d62eeb384c..b8ed44620deb 100644 --- a/playbooks/roles/codereadyrepo/tasks/main.yml +++ b/playbooks/roles/codereadyrepo/tasks/main.yml @@ -5,6 +5,7 @@ when: - ansible_distribution == 'RedHat' - not devconfig_custom_yum_repofile + - kdevops_enable_guestfs - name: Select the Oracle Linux CodeReady Builder repo ansible.builtin.set_fact: @@ -12,6 +13,7 @@ when: - ansible_distribution == 'OracleLinux' - not devconfig_custom_yum_repofile + - kdevops_enable_guestfs - name: Select the CentOS CodeReady Builder repo ansible.builtin.set_fact: @@ -19,6 +21,17 @@ when: - ansible_distribution == 'CentOS' - not devconfig_custom_yum_repofile + - kdevops_enable_guestfs + +# Probably need one of these for each cloud provider +- name: Select the AWS RHEL CodeReady Builder repo + ansible.builtin.set_fact: + codeready_repo: "codeready-builder-for-rhel-{{ ansible_distribution_major_version }}-rhui-rpms" + when: + - ansible_distribution == 'RedHat' + - not devconfig_custom_yum_repofile + - kdevops_enable_terraform + - kdevops_terraform_provider == "aws" - name: Enable the selected CodeReady Builder repo become: true