From 9c7dac6b944c17c3799e97375f169c5c888c1db4 Mon Sep 17 00:00:00 2001 From: James Saint-Rossy Date: Fri, 30 Sep 2016 11:43:53 -0400 Subject: [PATCH] Updated release version check --- roles/ceph-mon/tasks/create_mds_filesystems.yml | 4 ++-- roles/ceph-mon/tasks/secure_cluster.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/ceph-mon/tasks/create_mds_filesystems.yml b/roles/ceph-mon/tasks/create_mds_filesystems.yml index fd34f6d05..8b784f35d 100644 --- a/roles/ceph-mon/tasks/create_mds_filesystems.yml +++ b/roles/ceph-mon/tasks/create_mds_filesystems.yml @@ -9,9 +9,9 @@ - cephfs_data - cephfs_metadata changed_when: false - when: not {{ ceph_version | version_compare('0.84.0', '<') }} + when: ceph_release_num.{{ ceph_release }} > ceph_release_num.firefly - name: create ceph filesystem command: ceph --cluster {{ cluster }} fs new {{ cephfs }} {{ cephfs_metadata }} {{ cephfs_data }} changed_when: false - when: not {{ ceph_version | version_compare('0.84.0', '<') }} + when: ceph_release_num.{{ ceph_release }} > ceph_release_num.firefly diff --git a/roles/ceph-mon/tasks/secure_cluster.yml b/roles/ceph-mon/tasks/secure_cluster.yml index 9c67becea..a12d08f49 100644 --- a/roles/ceph-mon/tasks/secure_cluster.yml +++ b/roles/ceph-mon/tasks/secure_cluster.yml @@ -9,4 +9,4 @@ with_nested: - "{{ ceph_pools.stdout_lines|default([]) }}" - secure_cluster_flags - when: "{{ ceph_version | version_compare('0.94.0', '>=') }}" + when: ceph_release_num.{{ ceph_release }} >= ceph_release_num.hammer -- 2.39.5