Knife

From Notes_Wiki
Revision as of 05:47, 14 December 2014 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Chef|Chef</yambe:breadcrumb> =knife= ==Use knife to download cookbooks from site or to upload them to local server== # Download starter kit as explained in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Chef|Chef</yambe:breadcrumb>

knife

Use knife to download cookbooks from site or to upload them to local server

  1. Download starter kit as explained in Chef infrastructure setup#Install_Chef_server or configure knife as explained in Chef infrastructure setup#Configure_chef-server_and_knife_workstation_combination_using_command_line
  2. To configure knife using starter kit just extract the downloded zip file in appropriate folder.
  3. Download learn_chef_httpd cookbook using:
    knife cookbook site download learn_chef_httpd
    tar -zxvf learn_chef_httpd-0.1.0.tar.gz -C cookbooks
    rm learn_chef_httpd*.tar.gz
    <pre>
  4. Upload downloaded cookbook to server using:
    <pre>
    knife cookbook upload learn_chef_httpd