]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Make vstart.sh print out swift user info 5209/head
authorYuan Zhou <yuan.zhou@intel.com>
Mon, 13 Jul 2015 03:07:41 +0000 (11:07 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Mon, 13 Jul 2015 04:41:00 +0000 (12:41 +0800)
Currently vstart.sh only print out S3 user info. This patch updates it
to print swift user info too. Also changes the swift account/user/password
to test/tester/testing which align with openstack-swift better:
https://github.com/openstack/swift/blob/master/etc/proxy-server.conf-sample#L270

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
src/vstart.sh

index 4bf6a455ab98cee6742644cbbf06a30db7a207a3..c039eb7336493d3047349873c47b25f52f9fd164 100755 (executable)
@@ -671,11 +671,18 @@ do_rgw()
 
     # Create Swift user
     echo "setting up user tester"
-    $CEPH_BIN/radosgw-admin user create --subuser=tester:testing --display-name=Tester-Subuser --key-type=swift --secret=asdf > /dev/null
+    $CEPH_BIN/radosgw-admin user create --subuser=test:tester --display-name=Tester-Subuser --key-type=swift --secret=testing > /dev/null
 
     echo ""
-    echo "  access key  $akey"
-    echo "  secret key  $skey"
+    echo "S3 User Info:"
+    echo "  access key:  $akey"
+    echo "  secret key:  $skey"
+    echo ""
+    echo "Swift User Info:"
+    echo "  account   : test"
+    echo "  user      : tester"
+    echo "  password  : testing"
+    echo ""
 }
 if [ "$start_rgw" -eq 1 ]; then
     do_rgw