diff --git a/README.md b/README.md index b4f6ddc85..98175bd49 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ This project supports below scenarios for end-to-end guest operating system vali | BCLinux-for-Euler 21.10 | :heavy_check_mark: | | :heavy_check_mark: | | Red Hat Enterprise Linux CoreOS (RHCOS) 4.13 and later | | :heavy_check_mark: | :heavy_check_mark: | | FusionOS 22 and 23 | :heavy_check_mark: | | :heavy_check_mark: | +| Miracle Linux 8.x, 9.x | :heavy_check_mark: | | :heavy_check_mark: | **Notes** This compatible guest operating systems list is used for this project only. For guest operating system support status on ESXi, please refer to [VMware Compatibility Guide](https://www.vmware.com/resources/compatibility/search.php?deviceCategory=software&testConfig=16). diff --git a/linux/check_os_fullname/miracle_fullname_map.yml b/linux/check_os_fullname/miracle_fullname_map.yml new file mode 100644 index 000000000..159be9bb0 --- /dev/null +++ b/linux/check_os_fullname/miracle_fullname_map.yml @@ -0,0 +1,24 @@ +# Copyright 2023 VMware, Inc. +# SPDX-License-Identifier: BSD-2-Clause +--- +# Guest id "asianux8_64Guest" and full name "MIRACLE LINUX 8 (64-bit)" is available on ESXi 6.7P06 or later + +- name: "Set facts when vmtools_version is larger than 12.3.5" + when: + - vmtools_version is defined + - vmtools_version is version('12.3.5', '>') + block: + - name: "Set fact of expected guest OS major version on ESXi {{ esxi_version }}" + ansible.builtin.set_fact: + expected_guest_major_ver: "{{ [guest_os_ansible_distribution_major_ver | int, 8 ] | min }}" + + - name: "Set fact of expected guest id suffix" + ansible.builtin.set_fact: + guest_is_otherlinux: false + expected_guest_id_suffix: "{{ expected_guest_id_suffix | replace('64', '_64') }}" + + - name: "Set expected guest id and full name for {{ vm_guest_os_distribution }}" + ansible.builtin.set_fact: + expected_guest_id: "asianux{{ expected_guest_major_ver }}{{ expected_guest_id_suffix }}" + expected_guest_fullname: "MIRACLE LINUX {{ expected_guest_major_ver }} ({{ guest_os_bit }})" + diff --git a/linux/check_os_fullname/set_guestinfo_without_shortname.yml b/linux/check_os_fullname/set_guestinfo_without_shortname.yml index 5bd5d16f7..09ab5f5bb 100644 --- a/linux/check_os_fullname/set_guestinfo_without_shortname.yml +++ b/linux/check_os_fullname/set_guestinfo_without_shortname.yml @@ -38,7 +38,7 @@ - name: "Set expected guest id and full name for {{ vm_guest_os_distribution }}" include_tasks: "{{ guest_os_ansible_distribution | lower }}_fullname_map.yml" - when: guest_os_ansible_distribution in ["Amazon", "CentOS", "OracleLinux", "AlmaLinux", "Rocky", "Debian", "FreeBSD"] + when: guest_os_ansible_distribution in ["Amazon", "CentOS", "OracleLinux", "AlmaLinux", "Rocky", "Debian", "FreeBSD", "MIRACLE"] - name: "Set expected guest id and full name for {{ vm_guest_os_distribution }}" ansible.builtin.set_fact: