File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383fi
8484
8585if ! radosgw-admin user info --uid=deis > /dev/null 2>&1 ; then
86- radosgw-admin user create --uid=deis --display-name=" Deis" > /etc/ceph/user.json
87- # store the access key and secret key for consumption by other services
88- ACCESS_KEY=` cat /etc/ceph/user.json | python -c ' import json,sys;obj=json.load(sys.stdin);print json.dumps(obj["keys"][0]["access_key"]);' | tr -d ' "' `
89- SECRET_KEY=` cat /etc/ceph/user.json | python -c ' import json,sys;obj=json.load(sys.stdin);print json.dumps(obj["keys"][0]["secret_key"]);' | tr -d ' "' `
90- etcdctl --no-sync -C $ETCD set $ETCD_PATH /accessKey ${ACCESS_KEY} > /dev/null
91- etcdctl --no-sync -C $ETCD set $ETCD_PATH /secretKey ${SECRET_KEY} > /dev/null
86+ radosgw-admin user create --uid=deis --display-name=" Deis"
9287fi
9388
89+ radosgw-admin user info --uid=deis > /etc/ceph/user.json
90+ # store the access key and secret key for consumption by other services
91+ ACCESS_KEY=` cat /etc/ceph/user.json | python -c ' import json,sys;obj=json.load(sys.stdin);print json.dumps(obj["keys"][0]["access_key"]);' | tr -d ' "' `
92+ SECRET_KEY=` cat /etc/ceph/user.json | python -c ' import json,sys;obj=json.load(sys.stdin);print json.dumps(obj["keys"][0]["secret_key"]);' | tr -d ' "' `
93+ etcdctl --no-sync -C $ETCD set $ETCD_PATH /accessKey ${ACCESS_KEY} > /dev/null
94+ etcdctl --no-sync -C $ETCD set $ETCD_PATH /secretKey ${SECRET_KEY} > /dev/null
95+
9496# spawn the service in the background
9597echo " Starting RADOS gateway..."
9698/etc/init.d/radosgw start
You can’t perform that action at this time.
0 commit comments