]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
site: only support nfs on luminous and above
authorSébastien Han <seb@redhat.com>
Thu, 28 Sep 2017 16:24:15 +0000 (18:24 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 29 Sep 2017 00:38:24 +0000 (02:38 +0200)
Signed-off-by: Sébastien Han <seb@redhat.com>
site-docker.yml.sample
site.yml.sample

index e9e33088ec44677a07fb7e94eab7bc707a00a38a..6e3bcedf546a1f4c206e59c8b3a08b7227fbca8d 100644 (file)
   become: True
   gather_facts: false
   roles:
-    - ceph-defaults
-    - ceph-docker-common
-    - ceph-config
-    - ceph-nfs
+    - { role: ceph-defaults, when: "ceph_release_num.{{ ceph_stable_release }} >= ceph_release_num.luminous" }
+    - { role: ceph-docker-common, when: "ceph_release_num.{{ ceph_stable_release }} >= ceph_release_num.luminous" }
+    - { role: ceph-config, when: "ceph_release_num.{{ ceph_stable_release }} >= ceph_release_num.luminous" }
+    - { role: ceph-nfs, when: "ceph_release_num.{{ ceph_stable_release }} >= ceph_release_num.luminous" }
 
 - hosts: rbdmirrors
   become: True
index 39898ed12c7f93089963ddaf4e5df3b41ec172ec..4ae0cc54f3fb709b52995e1e0978649b5d4910d1 100644 (file)
   gather_facts: false
   become: True
   roles:
-    - ceph-defaults
-    - ceph-common
-    - ceph-config
-    - ceph-nfs
+    - { role: ceph-defaults, when: "ceph_release_num.{{ ceph_stable_release }} >= ceph_release_num.luminous" }
+    - { role: ceph-common, when: "ceph_release_num.{{ ceph_stable_release }} >= ceph_release_num.luminous" }
+    - { role: ceph-config, when: "ceph_release_num.{{ ceph_stable_release }} >= ceph_release_num.luminous" }
+    - { role: ceph-nfs, when: "ceph_release_num.{{ ceph_stable_release }} >= ceph_release_num.luminous" }
 
 - hosts: restapis
   gather_facts: false