mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Fix uniontech os installation failure (#9862)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
This commit is contained in:
@@ -107,3 +107,32 @@ ntp_force_sync_immediately: false
|
||||
|
||||
# Set the timezone for your server. eg: "Etc/UTC","Etc/GMT-8". If not set, the timezone will not change.
|
||||
ntp_timezone: ""
|
||||
|
||||
# Currently known os distributions
|
||||
supported_os_distributions:
|
||||
- 'RedHat'
|
||||
- 'CentOS'
|
||||
- 'Fedora'
|
||||
- 'Ubuntu'
|
||||
- 'Debian'
|
||||
- 'Flatcar'
|
||||
- 'Flatcar Container Linux by Kinvolk'
|
||||
- 'Suse'
|
||||
- 'openSUSE Leap'
|
||||
- 'openSUSE Tumbleweed'
|
||||
- 'ClearLinux'
|
||||
- 'OracleLinux'
|
||||
- 'AlmaLinux'
|
||||
- 'Rocky'
|
||||
- 'Amazon'
|
||||
- 'Kylin Linux Advanced Server'
|
||||
- 'UnionTech'
|
||||
- 'UniontechOS'
|
||||
- 'openEuler'
|
||||
|
||||
# Extending some distributions into the redhat os family
|
||||
redhat_os_family_extensions:
|
||||
- "Kylin Linux Advanced Server"
|
||||
- "openEuler"
|
||||
- "UnionTech"
|
||||
- "UniontechOS"
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
that: ansible_service_mgr == "systemd"
|
||||
when: not ignore_assert_errors
|
||||
|
||||
- name: Stop if unknown OS
|
||||
- name: Stop if the os does not support
|
||||
assert:
|
||||
that: ansible_distribution in ['RedHat', 'CentOS', 'Fedora', 'Ubuntu', 'Debian', 'Flatcar', 'Flatcar Container Linux by Kinvolk', 'Suse', 'openSUSE Leap', 'openSUSE Tumbleweed', 'ClearLinux', 'OracleLinux', 'AlmaLinux', 'Rocky', 'Amazon', 'Kylin Linux Advanced Server', 'UnionTech', 'openEuler']
|
||||
that: ansible_distribution in supported_os_distributions
|
||||
msg: "{{ ansible_distribution }} is not a known OS"
|
||||
when: not ignore_assert_errors
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
set_fact:
|
||||
ansible_os_family: "RedHat"
|
||||
ansible_distribution_major_version: "8"
|
||||
when: ansible_distribution in ["Kylin Linux Advanced Server", "openEuler"]
|
||||
when: ansible_distribution in redhat_os_family_extensions
|
||||
tags:
|
||||
- facts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user