mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-30 22:16:23 -02:30
feat: add openSUSE MicroOS support (#13449)
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
This commit is contained in:
@@ -89,6 +89,7 @@ supported_os_distributions:
|
||||
- 'Flatcar'
|
||||
- 'Suse'
|
||||
- 'openSUSE Leap'
|
||||
- 'openSUSE MicroOS'
|
||||
- 'openSUSE Tumbleweed'
|
||||
- 'ClearLinux'
|
||||
- 'OracleLinux'
|
||||
|
||||
@@ -10,6 +10,14 @@
|
||||
tags:
|
||||
- facts
|
||||
|
||||
- name: Normalize ansible_facts for openSUSE MicroOS
|
||||
set_fact:
|
||||
ansible_facts: "{{ ansible_facts | combine({'os_family': 'Suse'}) }}"
|
||||
ansible_os_family: Suse
|
||||
when: ansible_facts['distribution'] == "openSUSE MicroOS"
|
||||
tags:
|
||||
- facts
|
||||
|
||||
- name: Check resolvconf
|
||||
command: which resolvconf
|
||||
register: resolvconf
|
||||
|
||||
@@ -24,6 +24,14 @@
|
||||
msg: "{{ ansible_facts['distribution'] }} is not a known OS"
|
||||
when: not ignore_assert_errors
|
||||
|
||||
- name: Stop if the container manager is unsupported on openSUSE MicroOS
|
||||
assert:
|
||||
that: container_manager == "containerd"
|
||||
msg: "openSUSE MicroOS only supports containerd"
|
||||
when:
|
||||
- not ignore_assert_errors
|
||||
- ansible_facts['distribution'] == "openSUSE MicroOS"
|
||||
|
||||
- name: Stop if memory is too small for control plane nodes
|
||||
assert:
|
||||
that: ansible_facts['memtotal_mb'] >= minimal_master_memory_mb
|
||||
|
||||
Reference in New Issue
Block a user