From: John Wilkins Date: Thu, 5 Jul 2012 21:01:45 +0000 (-0700) Subject: doc: minor updates to the restrucuredText file. X-Git-Tag: v0.50~111 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=57bc8da9c7cccb3d808eb2deaf4a9ba11d2e0895;p=ceph.git doc: minor updates to the restrucuredText file. Signed-off-by: John Wilkins --- diff --git a/doc/config-cluster/chef.rst b/doc/config-cluster/chef.rst index 3c02d2539232..80bec620235e 100644 --- a/doc/config-cluster/chef.rst +++ b/doc/config-cluster/chef.rst @@ -39,11 +39,11 @@ generate a unique identifier. :: uuidgen -r -For the monitor(s) secret(s), use ``ceph-authtool`` to generate the secret(s): +For the monitor(s) secret(s), use ``ceph-authtool`` to generate the secret(s):: ceph-authtool /dev/stdout --name=mon. --gen-key -The secret is the value to the right of "key =", and should look something +The secret is the value to the right of ``"key ="``, and should look something like this:: AQBAMuJPINJgFhAAziXIrLvTvAz4PRo5IK/Log== @@ -60,7 +60,7 @@ For example: knife environment create Ceph -A JSON file will appear, and perform the following: +A JSON file will appear. Perform the following steps: #. Enter a description for the environment. #. In ``"default_attributes": {}``, add ``"ceph" : {}``. @@ -72,15 +72,20 @@ A JSON file will appear, and perform the following: #. Within ``"config": {}`` and following the ``fsid`` key-value pair, add ``"mon_initial_members":`` #. Immediately following ``"mon_initial_members":``, enter the initial monitor host names. -For example +For example:: + "default-attributes" : { - "ceph": { - "monitor-secret": "AQBAMuJPINJgFhAAziXIrLvTvAz4PRo5IK/Log==", - "config": { - "fsid": "ddca2b02-3ddf-42fb-ba52-0ee1982c6da0", - "mon_initial_members": "mon-host" - } - } + "ceph": { + "monitor-secret": "AQBAMuJPINJgFhAAziXIrLvTvAz4PRo5IK/Log==", + "config": { + "fsid": "ddca2b02-3ddf-42fb-ba52-0ee1982c6da0", + "mon_initial_members": "mon-host" + } + } + +Advanced users (i.e., developers and QA) may also add ``"ceph_branch": "{branch}"`` +to ``default-attributes``, replacing ``{branch}`` with the name of the branch you +wish to use (e.g., ``master``). Configure the Roles ------------------- @@ -140,9 +145,9 @@ runs the ``apt`` recipe followed by the roles ``ceph-mon`` and ``ceph-osd``:: ] }, "run_list": [ - "recipe[ceph::apt]", - "role[ceph-mon]", - "role[ceph-mds]" + "recipe[ceph::apt]", + "role[ceph-mon]", + "role[ceph-mds]" ] }