Skip to content

Commit 7c0d458

Browse files
committed
ci: normalize warewulf provisioner for OpenHPC 4
In OpenHPC 2/3, Provisioner=warewulf means Warewulf v3 and Provisioner=warewulf4 means Warewulf v4. In OpenHPC 4, warewulf v3 is gone and Provisioner=warewulf means Warewulf v4. Normalize Provisioner to "warewulf4" when VERSION_MAJOR is 4 so that all existing warewulf4 conditionals in support_functions.sh are triggered correctly. The normalization is placed after the recipeFile path assignment to preserve the correct on-disk path (warewulf/, not warewulf4/). Generated with Claude Code (https://claude.ai/code) Signed-off-by: Adrian Reber <areber@redhat.com>
1 parent f4d1d42 commit 7c0d458

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ansible/roles/test/files/install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ inputTemplate=/opt/ohpc/pub/doc/recipes/${os_major}/input.local
171171
inputFile=/root/ci_ohpc_inputs
172172
status=0
173173

174+
# For OpenHPC 4, "warewulf" is Warewulf v4 (not v3 as in OHPC 2/3).
175+
# Normalize Provisioner to "warewulf4" so that all existing conditionals
176+
# comparing against "warewulf4" are triggered correctly.
177+
if [[ "${VERSION_MAJOR}" == "4" ]] && [[ "${Provisioner}" == "warewulf" ]]; then
178+
Provisioner="warewulf4"
179+
fi
180+
174181
enable_repo
175182

176183
install_doc_rpm

0 commit comments

Comments
 (0)