Knife

From Notes_Wiki
Revision as of 12:09, 28 July 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 6.x > System administration tools > chef > 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
  4. Upload downloaded cookbook to server using:
    knife cookbook upload learn_chef_httpd



Home > CentOS > CentOS 6.x > System administration tools > chef > knife