]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
upstart, sysvinit: use ceph-crush-location hook
authorSage Weil <sage@inktank.com>
Tue, 29 Oct 2013 18:08:58 +0000 (11:08 -0700)
committerSage Weil <sage@inktank.com>
Tue, 29 Oct 2013 21:00:03 +0000 (14:00 -0700)
commita3119bc2f3a42b7cd1c0b2a0ba3ca93981a01b9b
treef2ff353bc469551a7d66474037c000b15e28ef1e
parent9f6af8b4588390274043f01d2ef9b0a0146a1839
upstart, sysvinit: use ceph-crush-location hook

Instead of hard-coding a check in ceph.conf and some reasonable
defaults, defer this work to ceph-crush-location, and allow users to
specify their own hook with alternative logic.

This can be helpful in a nubmer of cases, like:

 - rack (or other) information included in hostname and easily parsed
   out by a hook
 - multiple types of devices in each host, resulting in 'parallel'
   crush trees (e.g., one for hdd, one for ssd)

Signed-off-by: Sage Weil <sage@inktank.com>
src/init-ceph.in
src/upstart/ceph-osd.conf