Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Skip Stratis tests on RHEL 8 and document Stratis support #482

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ As of now, the role supports managing file systems and mount entries on

- disks
- LVM volume groups
- Stratis pools
- Stratis pools (with Stratis v3 and newer)

Encryption (using LUKS) and RAID (using MD) is also supported. Support
for managing pre-existing devices is limited, but new LVM volumes and
Expand Down
9 changes: 5 additions & 4 deletions tests/tests_stratis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,18 @@

- name: Set distribution version
set_fact:
is_rhel7: "{{ (ansible_facts['os_family'] == 'RedHat') and
ansible_facts.distribution_major_version == '7' }}"
is_rhel78: "{{ (ansible_facts['os_family'] == 'RedHat') and
(ansible_facts.distribution_major_version == '7' or
ansible_facts.distribution_major_version == '8') }}"
is_rhel9: "{{ (ansible_facts['os_family'] == 'RedHat') and
ansible_facts.distribution_major_version == '9' }}"
is_rhel10: "{{ (ansible_facts['os_family'] == 'RedHat') and
ansible_facts.distribution_major_version == '10' }}"
is_fedora: "{{ ansible_facts.distribution == 'Fedora' }}"


- name: Completely skip this on RHEL/CentOS 7 where Stratis isn't supported
when: not is_rhel7
- name: Completely skip this on RHEL/CentOS 7 and 8 where Stratis isn't supported by blivet
when: not is_rhel78
block:
- name: Get unused disks
include_tasks: get_unused_disk.yml
Expand Down
Loading