Difference between revisions of "Knife"

From Notes_Wiki
(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...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>Chef|Chef</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Chef|chef]] > [[Knife|knife]]
=knife=


==Use knife to download cookbooks from site or to upload them to local server==
==Use knife to download cookbooks from site or to upload them to local server==
Line 11: Line 10:
#::      tar -zxvf learn_chef_httpd-0.1.0.tar.gz -C cookbooks
#::      tar -zxvf learn_chef_httpd-0.1.0.tar.gz -C cookbooks
#::      rm learn_chef_httpd*.tar.gz
#::      rm learn_chef_httpd*.tar.gz
#:<pre>
#:</pre>
# Upload downloaded cookbook to server using:
# Upload downloaded cookbook to server using:
#:<pre>
#:<pre>
#::      knife cookbook upload learn_chef_httpd
#::      knife cookbook upload learn_chef_httpd
#:</pre>
#:</pre>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Chef|chef]] > [[Knife|knife]]

Latest revision as of 12:09, 28 July 2022

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