We were only supporting CentOS 8 for containerized deployment.
Since Nautilus 14.2.10 we now have el8 rpm packages so we should be
able to deploy a nautilus ceph cluster with el8.
Note that the nfs-ganesha isn't supported because there's no el8 rpm
packages for nfs-ganesha V2.8.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
#centos_package_dependencies:
# - epel-release
-# - libselinux-python
+# - "{{ 'python3-libselinux' if ansible_distribution_major_version | int >= 8 else 'libselinux-python' }}"
#redhat_package_dependencies: []
# for more info read: https://github.com/ceph/ceph-ansible/issues/305
#ceph_stable_distro_source: "{{ ansible_distribution_release }}"
-# This option is needed for _both_ stable and dev version, so please always fill the right version
-# # for supported distros, see http://download.ceph.com/rpm-{{ ceph_stable_release }}/
-#ceph_stable_redhat_distro: el7
-
# REPOSITORY: RHCS VERSION RED HAT STORAGE (from 4.0)
#
#centos_package_dependencies:
# - epel-release
-# - libselinux-python
+# - "{{ 'python3-libselinux' if ansible_distribution_major_version | int >= 8 else 'libselinux-python' }}"
#redhat_package_dependencies: []
# for more info read: https://github.com/ceph/ceph-ansible/issues/305
#ceph_stable_distro_source: "{{ ansible_distribution_release }}"
-# This option is needed for _both_ stable and dev version, so please always fill the right version
-# # for supported distros, see http://download.ceph.com/rpm-{{ ceph_stable_release }}/
-#ceph_stable_redhat_distro: el7
-
# REPOSITORY: RHCS VERSION RED HAT STORAGE (from 4.0)
#
register: result
until: result is succeeded
tags: with_pkg
+ when: ansible_distribution_major_version | int == 7
- name: configure red hat ceph community repository stable key
rpm_key:
gpgcheck: yes
state: present
gpgkey: "{{ ceph_stable_key }}"
- baseurl: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/$basearch"
+ baseurl: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}/el{{ ansible_distribution_major_version }}/$basearch"
file: ceph_stable
priority: 2
register: result
gpgcheck: yes
state: present
gpgkey: "{{ ceph_stable_key }}"
- baseurl: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/noarch"
+ baseurl: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}/el{{ ansible_distribution_major_version }}/noarch"
file: ceph_stable
priority: 2
register: result
centos_package_dependencies:
- epel-release
- - libselinux-python
+ - "{{ 'python3-libselinux' if ansible_distribution_major_version | int >= 8 else 'libselinux-python' }}"
redhat_package_dependencies: []
# for more info read: https://github.com/ceph/ceph-ansible/issues/305
#ceph_stable_distro_source: "{{ ansible_distribution_release }}"
-# This option is needed for _both_ stable and dev version, so please always fill the right version
-# # for supported distros, see http://download.ceph.com/rpm-{{ ceph_stable_release }}/
-ceph_stable_redhat_distro: el7
-
# REPOSITORY: RHCS VERSION RED HAT STORAGE (from 4.0)
#
state: absent
when:
- ansible_distribution == 'CentOS'
+ - ansible_distribution_major_version | int == 7
- not is_atomic | bool
- name: resize logical volume for root partition to fill remaining free space