If you use -a to start a remote daemon, assume the remote config is present
instead of pushing the local config. This makes more sense and simplifies
things.
Note that this means that -a in concert with -c foo means that foo must
also be present on the remote node in the same path. That, however, is a
use case that I don't particularly care about right now. :)
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
fi
# conf file
- if [ "$host" = "$hostname" ]; then
- cur_conf=$conf
- else
- unique=`dd if=/dev/urandom bs=16 count=1 2>/dev/null | md5sum | awk '{print $1}'`
- scp -q $conf $host:/tmp/ceph.conf.$unique
- trap "ssh $host rm /tmp/ceph.conf.$unique" EXIT
- cur_conf="/tmp/ceph.conf.$unique"
- fi
- cmd="$cmd -c $cur_conf"
+ cmd="$cmd -c $conf"
if echo $name | grep -q ^osd; then
get_conf osd_data "/var/lib/ceph/osd/ceph-$id" "osd data"