Cook like a Chef
Upcoming SlideShare
Loading in...5
×
 

Cook like a Chef

on

  • 1,912 views

Demonstrate how to use chef, the open source system integration framework.

Demonstrate how to use chef, the open source system integration framework.

Statistics

Views

Total Views
1,912
Views on SlideShare
1,910
Embed Views
2

Actions

Likes
0
Downloads
35
Comments
1

1 Embed 2

http://www.linkedin.com 2

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • blessing_11111@yahoo.com

    My name is Blessing
    i am a young lady with a kind and open heart,
    I enjoy my life,but life can't be complete if you don't have a person to share it
    with. blessing_11111@yahoo.com

    Hoping To Hear From You
    Yours Blessing
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Cook like a Chef Cook like a Chef Presentation Transcript

  • Cook like a ChefWho? Ian YangFrom? Intridea Inc.When? December 20, 2011
  • Contents1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • What is Chefa person who cooksprofessionally
  • What is Chefan open-source systemintegration framework thatcooks your serversprofessionally
  • Figure: What is Chef from Chef Wiki
  • Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • Figure: Arch Intro from Chef Wiki
  • Componentschef Gem of client/solo run-time and CLI tools.
  • Components chef Gem of client/solo run-time and CLI tools.chef-server Gem of server run-time
  • Components chef Gem of client/solo run-time and CLI tools.chef-server Gem of server run-time Chef Repo Blank repo template
  • Components chef Gem of client/solo run-time and CLI tools.chef-server Gem of server run-time Chef Repo Blank repo templateCommunity Cookbooks hosting site
  • Solo Workflow1 Collect Node info (ohai)
  • Solo Workflow1 Collect Node info (ohai)2 Get Node configuration data
  • Solo Workflow1 Collect Node info (ohai)2 Get Node configuration data3 Run specified Recipes with Node info and configuration data
  • RecipesRecipes configuration steps by Resources
  • Recipes Recipes configuration steps by ResourcesResources cross platform abstraction of tasks
  • Recipes Recipes configuration steps by ResourcesResources cross platform abstraction of tasks Providers actually execute the Resources
  • Git Recipe1 case node [: platform ] # node info2 when " debian " , " ubuntu "3 # package is a resource4 package " git - core "5 else6 package " git "7 end
  • Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • Start from Chef Repo1 gem install chef2 gh clone opscode chef - repo
  • Read existing CookbooksFigure: Opscode Community http://community.opscode.com/
  • CookbookDefinition Collection of Attributes
  • CookbookDefinition Collection of Attributes Recipes
  • CookbookDefinition Collection of Attributes Recipes Files & Templates
  • CookbookDefinition Collection of Attributes Recipes Files & Templates Definitions & Providers
  • Use knife1 knife cookbook site search nginx2 knife cookbook site install nginx3 knife cookbook site download nginx http://wiki.opscode.com/ display/chef/Cookbook+Site+Help
  • Wait... knife throwserrorsCreate a knife config in chefrepoFollow gist 1501318
  • Try Chef using chef-solo1 chef - solo -c config - file -j configuration - data . json
  • json sample1 {2 " rbenv ": {3 " rubies ": [ " 1.9.2 - p290 "],4 " gems ": [ " bundler "]5 },6 " run_list ": [ " recipe [ rbenv ]" ,7 " recipe [ nodejs ]"]8 }
  • Outline1 What is Chef2 How Chef Works3 How to Use Chef4 Example
  • cnintridea previewProvision vbox using vagrantInstall git, rbenv, ruby, bundlerInstall and config nginxDaemonize and monit rakewatch