From: Wido den Hollander Date: Tue, 15 Dec 2015 10:56:53 +0000 (+0100) Subject: doc: Use 'ceph auth get-or-create' for creating RGW keyring X-Git-Tag: v10.0.4~122^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f4a077c72d2b632952a6763fc79f13d115d21eb3;p=ceph.git doc: Use 'ceph auth get-or-create' for creating RGW keyring This saves us a lot of steps which the old documentation took. The result is however the same. --- diff --git a/doc/radosgw/config.rst b/doc/radosgw/config.rst index 549a273885d0..c513cb32712a 100644 --- a/doc/radosgw/config.rst +++ b/doc/radosgw/config.rst @@ -40,30 +40,10 @@ the node containing the gateway instance. See `User Management`_ for additional details on Ceph authentication. -#. Create a keyring for the gateway:: - - sudo ceph-authtool --create-keyring /etc/ceph/ceph.client.radosgw.keyring - sudo chmod +r /etc/ceph/ceph.client.radosgw.keyring - - #. Generate a Ceph Object Gateway user name and key for each instance. For exemplary purposes, we will use the name ``gateway`` after ``client.radosgw``:: - sudo ceph-authtool /etc/ceph/ceph.client.radosgw.keyring -n client.radosgw.gateway --gen-key - - -#. Add capabilities to the key. See `Configuration Reference - Pools`_ for details - on the effect of write permissions for the monitor and creating pools. :: - - sudo ceph-authtool -n client.radosgw.gateway --cap osd 'allow rwx' --cap mon 'allow rwx' /etc/ceph/ceph.client.radosgw.keyring - - -#. Once you have created a keyring and key to enable the Ceph Object Gateway - with access to the Ceph Storage Cluster, add the key to your - Ceph Storage Cluster. For example:: - - sudo ceph -k /etc/ceph/ceph.client.admin.keyring auth add client.radosgw.gateway -i /etc/ceph/ceph.client.radosgw.keyring - + sudo ceph auth get-or-create client.radosgw.gateway osd 'allow rwx' mon 'allow rwx' -o /etc/ceph/ceph.client.radosgw.keyring #. Distribute the keyring to the node with the gateway instance. ::