]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix for devices like /dev/cciss/c0d0, /dev/xvda 100/head
authorPiotr Bak <p.bak@boongle.com>
Fri, 18 Jul 2014 14:43:00 +0000 (16:43 +0200)
committerPiotr Bąk <p.bak@boongle.com>
Fri, 18 Jul 2014 14:43:00 +0000 (16:43 +0200)
roles/ceph-osd/tasks/journal_collocation.yml

index 363c06d06bae89f405e1652da81d8634d84ab184..977cb6d0e10ff2499e725a361900d8feec54a7e8 100644 (file)
@@ -22,7 +22,7 @@
 #
 
 - name: Check if the device is a partition or a disk
-  shell: echo '{{ item }}' | egrep '/dev/[a-z]{3}[0-9]$'
+  shell: echo '{{ item }}' | egrep '/dev/(([a-z]{3,4}[0-9]$)|(cciss/c[0-9]{1}d[0-9]{1}p[0-9]$))'
   ignore_errors: true
   with_items: devices
   register: ispartition
@@ -71,7 +71,7 @@
 # partition.
 
 - name: Activate OSD(s) when device is a disk
-  command: ceph-disk activate {{ item.2 }}1
+  command: ceph-disk activate {{ item.2 | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') }}1
   with_together:
     - parted.results
     - ispartition.results