From 9a1600bfcf328fcb9cea9e45907dec14b15ce701 Mon Sep 17 00:00:00 2001 From: Mario Cattamo Date: Fri, 31 May 2024 09:55:45 +0200 Subject: [PATCH] test: fix ansible os name variable in edge installer --- ostree-ng.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ostree-ng.sh b/ostree-ng.sh index ff4cfb1bb..95140b1ee 100755 --- a/ostree-ng.sh +++ b/ostree-ng.sh @@ -137,6 +137,7 @@ case "${ID}-${VERSION_ID}" in HTTP_BOOT_FEAT="true" SYSROOT_RO="true" DIRS_FILES_CUSTOMIZATION="true" + ANSIBLE_OS_NAME="rhel-edge" ;; "centos-8") OSTREE_REF="centos/8/${ARCH}/edge" @@ -538,7 +539,7 @@ EOF EOF # Test IoT/Edge OS greenprint "📼 Run Edge tests on HTTPBOOT VM" - podman run --annotation run.oci.keep_original_groups=1 -v "$(pwd)":/work:z -v "${TEMPDIR}":/tmp:z --rm quay.io/rhel-edge/ansible-runner:latest ansible-playbook -v -i /tmp/inventory -e os_name="${ANSIBLE_OS_NAME}" -e ostree_commit="${INSTALL_HASH}" -e ostree_ref="${ANSIBLE_OS_NAME}:${OSTREE_REF}" -e embedded_container="${EMBEDDED_CONTAINER}" -e sysroot_ro="$SYSROOT_RO" -e test_custom_dirs_files="${DIRS_FILES_CUSTOMIZATION}" check-ostree.yaml || RESULTS=0 + podman run --annotation run.oci.keep_original_groups=1 -v "$(pwd)":/work:z -v "${TEMPDIR}":/tmp:z --rm quay.io/rhel-edge/ansible-runner:latest ansible-playbook -v -i /tmp/inventory -e os_name="rhel" -e ostree_commit="${INSTALL_HASH}" -e ostree_ref="rhel:${OSTREE_REF}" -e embedded_container="${EMBEDDED_CONTAINER}" -e sysroot_ro="$SYSROOT_RO" -e test_custom_dirs_files="${DIRS_FILES_CUSTOMIZATION}" check-ostree.yaml || RESULTS=0 check_result greenprint "🧹 Clean up HTTPBOOT VM" @@ -924,7 +925,7 @@ version = "*" EOF # ANSIBLE_OS_NAME is a check-ostree.yaml playbook variable defined as "rhel" just for RHEL and CS systems, otherwise is "fedora" -if [[ "${ANSIBLE_OS_NAME}" == "rhel" ]]; then +if [[ "${ANSIBLE_OS_NAME}" == "rhel" || "${ANSIBLE_OS_NAME}" == "rhel-edge" ]]; then tee -a "$BLUEPRINT_FILE" >> /dev/null << EOF [customizations.kernel] name = "kernel-rt"