]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
init-ceph: use remote config when starting daemons on remote nodes (-a)
authorSage Weil <sage@inktank.com>
Thu, 25 Apr 2013 18:13:33 +0000 (11:13 -0700)
committerSage Weil <sage@inktank.com>
Thu, 25 Apr 2013 18:13:33 +0000 (11:13 -0700)
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>
src/init-ceph.in

index 61c10e169720ac6b28abf6f4fa140adb3f3db313..3e0b0810dd54c932b343713e36a7a4cd1a6d7e54 100644 (file)
@@ -213,15 +213,7 @@ for name in $what; do
     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"