]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: support -X by adding 'auth required = none' entries
authorDan Mick <dan.mick@inktank.com>
Tue, 13 Nov 2012 21:24:15 +0000 (13:24 -0800)
committerDan Mick <dan.mick@inktank.com>
Tue, 13 Nov 2012 23:12:16 +0000 (15:12 -0800)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/vstart.sh

index bdf02f3b88e4606814a1ddb0c10add751032213f..e0516341e1013a7536572a27ffcba539d21a3783 100755 (executable)
@@ -292,9 +292,17 @@ if [ "$start_mon" -eq 1 ]; then
         osd pgp bits = 5  ; (invalid, but ceph should cope!)
         osd pool default min size = 1
 EOF
-                       [ "$cephx" -eq 1 ] && cat<<EOF >> $conf
+if [ "$cephx" -eq 1 ] ; then
+cat <<EOF >> $conf
         auth supported = cephx
 EOF
+else
+cat <<EOF >> $conf
+       auth cluster required = none
+       auth service required = none
+       auth client required = none
+EOF
+fi
                        cat <<EOF >> $conf
 
 [client]