]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ceph-docker: Fail if using classic mode 175/head
authorZack Cerza <zack@redhat.com>
Tue, 8 May 2018 18:53:50 +0000 (12:53 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 8 May 2018 18:53:50 +0000 (12:53 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-docker/tasks/main.yml
ansible/roles/ceph-docker/tasks/sanity.yml [new file with mode: 0644]

index 4bea619879e38bcc55bb49208daff7beeaf5ded4..2110a2cec0c716dc1921ba547df24c0b4b109e1c 100644 (file)
@@ -8,6 +8,10 @@
   when:
     - not containerized
 
+- include: sanity.yml
+  tags:
+    - sanity
+
 - include: install_packages.yml
   tags:
     - packages
diff --git a/ansible/roles/ceph-docker/tasks/sanity.yml b/ansible/roles/ceph-docker/tasks/sanity.yml
new file mode 100644 (file)
index 0000000..9586028
--- /dev/null
@@ -0,0 +1,7 @@
+---
+ - name: Fail when containerized and classic are combined
+   fail:
+     msg: "Containers are not supported with backend.metrics set to 'cephmetrics'!"
+   when:
+     - backend.metrics == 'cephmetrics'
+     - containerized