For ceph_dev and rhcs installation we need to detect the release since
we do not declare it explicitly. Keeping the default ceph_stable_release
could lead to several things going wrong and some have already been
reported.
Fixes: https://github.com/ceph/ceph-ansible/issues/1712 and
https://bugzilla.redhat.com/show_bug.cgi?id=
1476210
Signed-off-by: Sébastien Han <seb@redhat.com>
msg: "make sure ceph_stable_release is set to a release name (e.g: luminous), http://docs.ceph.com/docs/master/release-notes/"
when:
- ceph_stable_release == 'dummy'
- - not ceph_rhcs
+ - ceph_origin == 'upstream'
+ - ceph_stable
tags:
- package-install
msg: "wrong release name, see http://docs.ceph.com/docs/master/release-notes/"
when:
- ceph_stable_release not in ceph_release_num
- - not ceph_rhcs
+ - ceph_origin == 'upstream'
+ - ceph_stable
tags:
- package-install
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
static: False
+# override ceph_stable_release for ceph_dev and rhcs installations since ceph_stable_release is not mandatory
+- include: ./release-rhcs.yml
+ when: (ceph_rhcs or ceph_dev)
+ tags:
+ - always
+
- include: ./misc/ntp_redhat.yml
when:
- ansible_os_family == 'RedHat'
--- /dev/null
+---
+- set_fact:
+ ceph_release: jewel
+ when: ceph_version.split('.')[0] | version_compare('10', '==')
+
+- set_fact:
+ ceph_release: kraken
+ when: ceph_version.split('.')[0] | version_compare('11', '==')
+
+- set_fact:
+ ceph_release: luminous
+ when: ceph_version.split('.')[0] | version_compare('12', '==')
+