From be8ae40bfb100e38ff17d5127a47f747ef663265 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 27 Apr 2016 09:28:17 -0400 Subject: [PATCH] create is_before_RELEASE vars as well Signed-off-by: Alfredo Deza --- roles/ceph-common/tasks/facts.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/roles/ceph-common/tasks/facts.yml b/roles/ceph-common/tasks/facts.yml index bb90e5fa5..240305b55 100644 --- a/roles/ceph-common/tasks/facts.yml +++ b/roles/ceph-common/tasks/facts.yml @@ -11,6 +11,20 @@ # NOTE (leseb/jsaintrocc): You are supposed to quote variables # that follow colons to avoid confusion with dicts but this # causes issues with the boolean, so we keep this syntax styling... +# is_before facts +- set_fact: + is_before_hammer={{ ceph_version | version_compare('0.94.0', '<') }} + +- set_fact: + is_before_infernalis={{ ceph_version | version_compare('9.0.0', '<') }} + +- set_fact: + is_before_jewel={{ ceph_version | version_compare('10.0.0', '<') }} + +- set_fact: + is_before_kraken={{ ceph_version | version_compare('11.0.0', '<') }} + +# is_after facts - set_fact: is_after_hammer={{ ceph_version | version_compare('0.95.0', '>') }} @@ -23,6 +37,7 @@ - set_fact: is_after_kraken={{ ceph_version | version_compare('11.4.0', '>') }} +# is_version facts - set_fact: is_hammer={{ ceph_version | version_compare('0.94.0', '>=') | version_compare('9.0.0', '<') }}