From 5c84f013492554e235a33f942a6cc445d3e8421c Mon Sep 17 00:00:00 2001 From: John Wilkins Date: Tue, 10 Jul 2012 15:23:56 -0700 Subject: [PATCH] doc: Adding apt update message. VM users didn't get the package otherwise. Signed-off-by: John Wilkins --- doc/config-cluster/chef.rst | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/doc/config-cluster/chef.rst b/doc/config-cluster/chef.rst index ebfb1d943676c..77acf986eb8c3 100644 --- a/doc/config-cluster/chef.rst +++ b/doc/config-cluster/chef.rst @@ -3,8 +3,7 @@ ===================== We use Chef cookbooks to deploy Ceph. See `Managing Cookbooks with Knife`_ for details -on using ``knife``. For Chef installation instructions, see -`Installing Chef`_. +on using ``knife``. For Chef installation instructions, see `Installing Chef`_. Clone the Required Cookbooks ---------------------------- @@ -15,6 +14,26 @@ To get the cookbooks for Ceph, clone them from git.:: git clone https://github.com/opscode-cookbooks/apache2.git git clone https://github.com/ceph/ceph-cookbooks.git +Add the Required Cookbook Paths +------------------------------- + +If you added a default cookbook path when you installed Chef, ``knife`` +may be able to upload the cookbook you've cloned to your cookbook path +directory without further configuration. If you used a different path, +or if the cookbook repository you cloned has a different tree structure, +add the required cookbook path to your ``knife.rb`` file. The +``cookbook_path`` setting takes a string or an array of strings. +For example, you can replace a string path with an array of string paths:: + + cookbook_path '/home/{user-name}/chef-cookbooks/' + +Becomes:: + + cookbook_path [ + '/home/{user-name}/chef-cookbooks/', + '/home/{user-name}/chef-cookbooks/{another-directory}/', + '/some/other/path/to/cookbooks' + ] Install the Cookbooks --------------------- @@ -42,6 +61,7 @@ generate a unique identifier. :: For the monitor(s) secret(s), use ``ceph-authtool`` to generate the secret(s):: + sudo apt-get update sudo apt-get install ceph-common ceph-authtool /dev/stdout --name=mon. --gen-key -- 2.39.5