SlideShare a Scribd company logo
1 of 21
Chef	
  introduc.on	
Touch	
  the	
  chef-­‐solo
Agenda	
1. Goal	
  
2. About	
  Chef	
  
3. Install	
  Chef	
  
4. Chef	
  Basic	
  Usage
Agenda	
1. Goal	
  
2. About	
  Chef	
  
3. Install	
  Chef	
  
4. Chef	
  Basic	
  Usage
Goal	
1. Learn	
  basic	
  knowledge	
  of	
  Chef	
  
2. Learn	
  basic	
  command	
  of	
  Chef-­‐solo	
  
3. Use	
  Chef-­‐solo	
  
Agenda	
1. Goal	
  
2. About	
  Chef	
  
3. Install	
  Chef	
  
4. Chef	
  Basic	
  Usage
About	
  Chef	
•  Chef	
  (Opscode)	
  developed	
  this	
  
–  hIp://www.getchef.com/blog/2013/12/09/chef-­‐the-­‐company-­‐
formerly-­‐known-­‐as-­‐opscode/	
  
•  System	
  configure	
  management	
  tool	
  using	
  
Ruby	
  
•  Similar	
  Tool	
  
– CFEngine	
  
– Puppet	
  
– Ansible	
  	
  
Specially	
•  idempotence	
  
– The	
  same	
  result	
  even	
  if	
  performed	
  mul.ple	
  .mes	
  
*	
  Chef	
  defines	
  the	
  last	
  server	
  configura.on	
  
•  Independent	
  to	
  plaVorm	
  
•  Reuse	
  cookbook	
  /	
  recipe	
  
– These	
  are	
  published	
  on	
  Community/Github	
  
•  We	
  can	
  construct	
  server	
  by	
  code	
  
•  We	
  can	
  manage	
  server	
  status	
  by	
  code	
  
Chef	
  Rela.onship	
From	
  official	
  
Repository	
  /	
  Cookbook	
  /	
  Recipe	
Repository	
  
Cookbook	
  
Recipe	
  
•  Repository:	
  The	
  loca.on	
  in	
  which	
  cookbooks,roles,	
  data	
  bags,	
  environment	
  
and	
  configura.on	
  files	
  are	
  stored	
  
•  Cookbook:	
  The	
  fundamental	
  unit	
  of	
  configura.on	
  and	
  policy	
  distribu.on	
  
•  Recipe:	
  The	
  most	
  fundamental	
  configura.on	
  element	
  within	
  the	
  organiza.on	
  
What	
  kind	
  of	
  vender	
  used	
  Chef	
• Facebook	
  
• Splunk	
  
• CyberAgent	
  
• GREE
Agenda	
1. Goal	
  
2. About	
  Chef	
  
3. Install	
  Chef	
  
4. Chef	
  Basic	
  Usage
Install	
  Chef	
  (Client)	
•  Package	
  
hIps://opscode-­‐omnibus-­‐packages.s3.amazonaws.com/el/6/
x86_64/chef-­‐11.14.2-­‐1.el6.x86_64.rpm	
  
hIps://opscode-­‐omnibus-­‐packages.s3.amazonaws.com/debian/6/
x86_64/chef_11.14.2-­‐1_amd64.deb	
  
•  Shell	
  
curl	
  -­‐L	
  hIps://www.opscode.com/chef/install.sh	
  |	
  
bash	
  
•  Gem	
  (not	
  recommend)	
  
gem	
  install	
  chef	
From	
  hIp://www.getchef.com/chef/install/	
  
Agenda	
1. Goal	
  
2. About	
  Chef	
  
3. Install	
  Chef	
  
4. Chef	
  Basic	
  Usage
Chef-­‐solo	
  Basic	
  Usage	
1. Repository	
  crea.on	
  (knife	
  solo	
  init	
  
[Path])	
  
2. Chef-­‐solo	
  config	
  fie	
  crea.on	
  
3. Get/Create	
  cookbook	
  
4. Node	
  file	
  included	
  run_list	
  crea.on	
  
5. Chef-­‐solo	
  execu.on	
  
1.	
  Repository	
  crea.on	
•  Command	
  
–  knife	
  solo	
  init	
  [Path]	
  
※Before	
  this	
  command,	
  setup	
  knife	
  through	
  [knife	
  configure]	
  
•  Detail	
  of	
  under	
  repository	
  
–  Cookbooks	
  :	
  The	
  store	
  of	
  published	
  cookbook	
  
–  data_bags	
  :	
  A	
  piacere	
  data	
  store	
  which	
  we	
  can	
  refer	
  
–  Environments	
  :	
  The	
  informa.on	
  to	
  map	
  an	
  organiza.on’s	
  
real-­‐life	
  workflow	
  
–  Nodes	
  :	
  The	
  informa.on	
  that	
  is	
  configured	
  to	
  be	
  
maintained	
  by	
  chef	
  client	
  
–  Roles	
  :	
  The	
  informa.on	
  to	
  define	
  certain	
  paIerns	
  and	
  
processes	
  
–  site-­‐cookbooks	
  :	
  The	
  store	
  of	
  self	
  cookbook
2.	
  Chef-­‐solo	
  Configure	
  File	
•  cookbook_path	
  
The	
  path	
  of	
  cookbooks	
  (This	
  is	
  separated	
  by	
  comma)	
  
•  file_backup_path	
  
The	
  path	
  of	
  backup	
  file	
  
Default:	
  /var/chef/backup	
  
•  file_cache_path	
  
The	
  path	
  to	
  cache	
  data	
  which	
  is	
  	
  temporary	
  and	
  
cookbook	
  
•  log_level	
  
The	
  level	
  of	
  log	
  which	
  is	
  wriIen	
  to	
  file	
  
Default:	
  auto	
  (other:	
  debug,	
  info,	
  warn,	
  error,	
  fatal)	
  
If	
  you	
  more	
  learn,	
  please	
  check	
  hIp://docs.getchef.com/config_rb_solo.html	
  
3.	
  Get/Create	
  cookbook	
•  In	
  the	
  case	
  to	
  get	
  external	
  such	
  as	
  community	
  
– The	
  environment	
  which	
  is	
  needed	
  proxy	
  
•  Write	
  the	
  followings	
  to	
  .chef/knife.rb	
  (Under	
  the	
  
repository)	
  
–  hIp_proxy	
  “hIp://VIP:PORT”	
  
–  hIps_proxy	
  hIp://VIP:PORT	
  
– knife	
  cookbook	
  site	
  download	
  “[Recipe-­‐Name]”	
  
•  We	
  can	
  get	
  the	
  file	
  formaIed	
  tar.gz	
  from	
  
hIps://supermarket.getchef.com/cookbooks	
  	
  
•  Ajer	
  unpacking,	
  we	
  need	
  to	
  move	
  it	
  to	
  cookbook	
  
directory	
  
3.	
  Get/Create	
  cookbook	
•  In	
  the	
  case	
  of	
  self	
  cookbook	
  
– knife	
  cookbook	
  create	
  [Recipe-­‐name]	
  –o	
  site-­‐
cookbooks	
  
– The	
  above	
  command	
  creates	
  unnecessary	
  
directories.	
  So	
  we	
  need	
  to	
  delete	
  these.	
  
– On	
  the	
  other	
  hand,	
  we	
  create	
  only	
  needed	
  
directories	
  by	
  mkdir	
  command	
  
3.	
  Detail	
  the	
  under	
  the	
  Recipe	
•  Detail	
  of	
  under	
  Recipe	
  
•  recipes	
  (default.rb	
  is	
  wriIen	
  to	
  main)	
  
The	
  processing	
  file	
  
•  Templates	
  
The	
  file	
  which	
  changes	
  dynamically	
  (such	
  as	
  configura.on	
  file)	
  
This	
  exten.on	
  is	
  .erb.	
  In	
  basic	
  usage,	
  target	
  file	
  is	
  set	
  under	
  this	
  
ajer	
  crea.ng	
  default	
  directory	
  
•  aIributes	
  (default	
  value	
  is	
  wriIen	
  on	
  default.rb)	
  
The	
  default	
  value	
  selng	
  file	
  
•  files	
  
The	
  file	
  which	
  not	
  change	
  (such	
  as	
  upload	
  file)	
  
In	
  basic	
  usage,	
  target	
  file	
  is	
  set	
  under	
  this	
  ajer	
  crea.ng	
  default	
  
directory	
  
If	
  you	
  more	
  learn,	
  please	
  check	
  hIp://docs.getchef.com/essen.als_cookbooks.h
4.	
  Node	
  file	
  crea.on	
•  Set	
  a	
  variable	
  value	
  
•  Set	
  recipe	
  which	
  we	
  use	
  (run_list)	
  
Reference	
•  公式サイト	
  
–  h#p://www.getchef.com/	
  
•  今更聞けない人の為の Chef	
  再入門	
–  h#p://blog.schoolwith.me/chef-­‐re-­‐introduc:on/	
  
•  Chef入門 ドットインストール	
–  hIp://do.nstall.com/lessons/basic_chef	
  
•  Chef入門	
  
–  hIp://tatsu-­‐zine.com/books/chef-­‐solo	
  
•  Chef活用ガイド	
  
–  hIp://books.rakuten.co.jp/rk/
fec960065935329eb2ae093098277f99/	
  

More Related Content

What's hot

Launching containers with fleet
Launching containers with fleetLaunching containers with fleet
Launching containers with fleet충섭 김
 
Automatic docker service announcement with registrator and confd
Automatic docker service announcement with registrator and confdAutomatic docker service announcement with registrator and confd
Automatic docker service announcement with registrator and confd충섭 김
 
Ansible Oxford - Cows & Containers
Ansible Oxford - Cows & ContainersAnsible Oxford - Cows & Containers
Ansible Oxford - Cows & Containersjonatanblue
 
Compiling linux kernel and submit first patch
Compiling linux kernel and submit first patchCompiling linux kernel and submit first patch
Compiling linux kernel and submit first patchMayur Patil
 
Dockerizing WordPress
Dockerizing WordPressDockerizing WordPress
Dockerizing WordPressdotCloud
 
Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015Jonas Rosland
 
Setup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformSetup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformAjeet Singh
 
Angular boilerplate generator
Angular boilerplate generatorAngular boilerplate generator
Angular boilerplate generatorVincent De Smet
 
이미지 기반의 배포 패러다임 Immutable infrastructure
이미지 기반의 배포 패러다임 Immutable infrastructure이미지 기반의 배포 패러다임 Immutable infrastructure
이미지 기반의 배포 패러다임 Immutable infrastructureDaegwon Kim
 
Continuous integration with Docker and Ansible
Continuous integration with Docker and AnsibleContinuous integration with Docker and Ansible
Continuous integration with Docker and AnsibleDmytro Slupytskyi
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command linedotCloud
 
Docker advance topic
Docker advance topicDocker advance topic
Docker advance topicKalkey
 
Deploying Symfony2 app with Ansible
Deploying Symfony2 app with AnsibleDeploying Symfony2 app with Ansible
Deploying Symfony2 app with AnsibleRoman Rodomansky
 
Running Django on Docker: a workflow and code
Running Django on Docker: a workflow and codeRunning Django on Docker: a workflow and code
Running Django on Docker: a workflow and codeDanielle Madeley
 
Docker consul-registrator
Docker consul-registratorDocker consul-registrator
Docker consul-registratorlaonap166
 

What's hot (20)

Launching containers with fleet
Launching containers with fleetLaunching containers with fleet
Launching containers with fleet
 
Docker up and running
Docker up and runningDocker up and running
Docker up and running
 
Automatic docker service announcement with registrator and confd
Automatic docker service announcement with registrator and confdAutomatic docker service announcement with registrator and confd
Automatic docker service announcement with registrator and confd
 
Ansible Oxford - Cows & Containers
Ansible Oxford - Cows & ContainersAnsible Oxford - Cows & Containers
Ansible Oxford - Cows & Containers
 
CoreOS Overview
CoreOS OverviewCoreOS Overview
CoreOS Overview
 
Compiling linux kernel and submit first patch
Compiling linux kernel and submit first patchCompiling linux kernel and submit first patch
Compiling linux kernel and submit first patch
 
Docker
DockerDocker
Docker
 
Dockerizing WordPress
Dockerizing WordPressDockerizing WordPress
Dockerizing WordPress
 
Docker toolbox
Docker toolboxDocker toolbox
Docker toolbox
 
Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015
 
Setup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platformSetup Kubernetes with flannel on ubuntu platform
Setup Kubernetes with flannel on ubuntu platform
 
Angular boilerplate generator
Angular boilerplate generatorAngular boilerplate generator
Angular boilerplate generator
 
이미지 기반의 배포 패러다임 Immutable infrastructure
이미지 기반의 배포 패러다임 Immutable infrastructure이미지 기반의 배포 패러다임 Immutable infrastructure
이미지 기반의 배포 패러다임 Immutable infrastructure
 
Continuous integration with Docker and Ansible
Continuous integration with Docker and AnsibleContinuous integration with Docker and Ansible
Continuous integration with Docker and Ansible
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command line
 
Docker advance topic
Docker advance topicDocker advance topic
Docker advance topic
 
Deploying Symfony2 app with Ansible
Deploying Symfony2 app with AnsibleDeploying Symfony2 app with Ansible
Deploying Symfony2 app with Ansible
 
Running Django on Docker: a workflow and code
Running Django on Docker: a workflow and codeRunning Django on Docker: a workflow and code
Running Django on Docker: a workflow and code
 
Docker advance1
Docker advance1Docker advance1
Docker advance1
 
Docker consul-registrator
Docker consul-registratorDocker consul-registrator
Docker consul-registrator
 

Similar to Chef introduction

Lessons from Etsy: Avoiding Kitchen Nightmares - #ChefConf 2012
Lessons from Etsy: Avoiding Kitchen Nightmares - #ChefConf 2012Lessons from Etsy: Avoiding Kitchen Nightmares - #ChefConf 2012
Lessons from Etsy: Avoiding Kitchen Nightmares - #ChefConf 2012Patrick McDonnell
 
Chef Fundamentals Training Series Module 2: Workstation Setup
Chef Fundamentals Training Series Module 2: Workstation SetupChef Fundamentals Training Series Module 2: Workstation Setup
Chef Fundamentals Training Series Module 2: Workstation SetupChef Software, Inc.
 
A Supermarket of Your Own: Running a Private Chef Supermarket
A Supermarket of Your Own: Running a Private Chef SupermarketA Supermarket of Your Own: Running a Private Chef Supermarket
A Supermarket of Your Own: Running a Private Chef SupermarketNell Shamrell-Harrington
 
Atmosphere 2014: Really large scale systems configuration - Phil Dibowitz
Atmosphere 2014: Really large scale systems configuration - Phil DibowitzAtmosphere 2014: Really large scale systems configuration - Phil Dibowitz
Atmosphere 2014: Really large scale systems configuration - Phil DibowitzPROIDEA
 
Chef - Infrastructure Automation for the Masses
Chef - Infrastructure Automation for the Masses�Chef - Infrastructure Automation for the Masses�
Chef - Infrastructure Automation for the MassesSai Perchard
 
Chef, Vagrant and Friends
Chef, Vagrant and FriendsChef, Vagrant and Friends
Chef, Vagrant and FriendsBen McRae
 
Environments - Fundamentals Webinar Series Week 5
Environments - Fundamentals Webinar Series Week 5Environments - Fundamentals Webinar Series Week 5
Environments - Fundamentals Webinar Series Week 5Chef
 
Automating your infrastructure with Chef
Automating your infrastructure with ChefAutomating your infrastructure with Chef
Automating your infrastructure with ChefJohn Ewart
 
Testing your-automation-code (vagrant version) v0.2
Testing your-automation-code (vagrant version) v0.2Testing your-automation-code (vagrant version) v0.2
Testing your-automation-code (vagrant version) v0.2Sylvain Tissot
 
Chef, Vagrant, and VirtualBox
Chef, Vagrant, and VirtualBoxChef, Vagrant, and VirtualBox
Chef, Vagrant, and VirtualBoxJason Vanderhoof
 
Managing Servers with Chef
Managing Servers with ChefManaging Servers with Chef
Managing Servers with ChefJoe Kepley
 
Vagrant and Chef on FOSSASIA 2014
Vagrant and Chef on FOSSASIA 2014Vagrant and Chef on FOSSASIA 2014
Vagrant and Chef on FOSSASIA 2014Michael Lihs
 
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...Chef Software, Inc.
 
CIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
CIRCUIT 2015 - AEM Infrastructure Automation with Chef CookbooksCIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
CIRCUIT 2015 - AEM Infrastructure Automation with Chef CookbooksICF CIRCUIT
 

Similar to Chef introduction (20)

Lessons from Etsy: Avoiding Kitchen Nightmares - #ChefConf 2012
Lessons from Etsy: Avoiding Kitchen Nightmares - #ChefConf 2012Lessons from Etsy: Avoiding Kitchen Nightmares - #ChefConf 2012
Lessons from Etsy: Avoiding Kitchen Nightmares - #ChefConf 2012
 
Chef Fundamentals Training Series Module 2: Workstation Setup
Chef Fundamentals Training Series Module 2: Workstation SetupChef Fundamentals Training Series Module 2: Workstation Setup
Chef Fundamentals Training Series Module 2: Workstation Setup
 
Chef advance
Chef advanceChef advance
Chef advance
 
Chef advance
Chef advanceChef advance
Chef advance
 
A Supermarket of Your Own: Running a Private Chef Supermarket
A Supermarket of Your Own: Running a Private Chef SupermarketA Supermarket of Your Own: Running a Private Chef Supermarket
A Supermarket of Your Own: Running a Private Chef Supermarket
 
Atmosphere 2014: Really large scale systems configuration - Phil Dibowitz
Atmosphere 2014: Really large scale systems configuration - Phil DibowitzAtmosphere 2014: Really large scale systems configuration - Phil Dibowitz
Atmosphere 2014: Really large scale systems configuration - Phil Dibowitz
 
Chef - Infrastructure Automation for the Masses
Chef - Infrastructure Automation for the Masses�Chef - Infrastructure Automation for the Masses�
Chef - Infrastructure Automation for the Masses
 
IT Automation with Chef
IT Automation with ChefIT Automation with Chef
IT Automation with Chef
 
Chef, Vagrant and Friends
Chef, Vagrant and FriendsChef, Vagrant and Friends
Chef, Vagrant and Friends
 
Environments - Fundamentals Webinar Series Week 5
Environments - Fundamentals Webinar Series Week 5Environments - Fundamentals Webinar Series Week 5
Environments - Fundamentals Webinar Series Week 5
 
Automating your infrastructure with Chef
Automating your infrastructure with ChefAutomating your infrastructure with Chef
Automating your infrastructure with Chef
 
The Environment Restaurant
The Environment RestaurantThe Environment Restaurant
The Environment Restaurant
 
Testing your-automation-code (vagrant version) v0.2
Testing your-automation-code (vagrant version) v0.2Testing your-automation-code (vagrant version) v0.2
Testing your-automation-code (vagrant version) v0.2
 
Chef Jumpstart
Chef JumpstartChef Jumpstart
Chef Jumpstart
 
Chef, Vagrant, and VirtualBox
Chef, Vagrant, and VirtualBoxChef, Vagrant, and VirtualBox
Chef, Vagrant, and VirtualBox
 
Managing Servers with Chef
Managing Servers with ChefManaging Servers with Chef
Managing Servers with Chef
 
Chef
ChefChef
Chef
 
Vagrant and Chef on FOSSASIA 2014
Vagrant and Chef on FOSSASIA 2014Vagrant and Chef on FOSSASIA 2014
Vagrant and Chef on FOSSASIA 2014
 
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
 
CIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
CIRCUIT 2015 - AEM Infrastructure Automation with Chef CookbooksCIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
CIRCUIT 2015 - AEM Infrastructure Automation with Chef Cookbooks
 

Recently uploaded

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 

Recently uploaded (20)

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 

Chef introduction

  • 2. Agenda 1. Goal   2. About  Chef   3. Install  Chef   4. Chef  Basic  Usage
  • 3. Agenda 1. Goal   2. About  Chef   3. Install  Chef   4. Chef  Basic  Usage
  • 4. Goal 1. Learn  basic  knowledge  of  Chef   2. Learn  basic  command  of  Chef-­‐solo   3. Use  Chef-­‐solo  
  • 5. Agenda 1. Goal   2. About  Chef   3. Install  Chef   4. Chef  Basic  Usage
  • 6. About  Chef •  Chef  (Opscode)  developed  this   –  hIp://www.getchef.com/blog/2013/12/09/chef-­‐the-­‐company-­‐ formerly-­‐known-­‐as-­‐opscode/   •  System  configure  management  tool  using   Ruby   •  Similar  Tool   – CFEngine   – Puppet   – Ansible    
  • 7. Specially •  idempotence   – The  same  result  even  if  performed  mul.ple  .mes   *  Chef  defines  the  last  server  configura.on   •  Independent  to  plaVorm   •  Reuse  cookbook  /  recipe   – These  are  published  on  Community/Github   •  We  can  construct  server  by  code   •  We  can  manage  server  status  by  code  
  • 9. Repository  /  Cookbook  /  Recipe Repository   Cookbook   Recipe   •  Repository:  The  loca.on  in  which  cookbooks,roles,  data  bags,  environment   and  configura.on  files  are  stored   •  Cookbook:  The  fundamental  unit  of  configura.on  and  policy  distribu.on   •  Recipe:  The  most  fundamental  configura.on  element  within  the  organiza.on  
  • 10. What  kind  of  vender  used  Chef • Facebook   • Splunk   • CyberAgent   • GREE
  • 11. Agenda 1. Goal   2. About  Chef   3. Install  Chef   4. Chef  Basic  Usage
  • 12. Install  Chef  (Client) •  Package   hIps://opscode-­‐omnibus-­‐packages.s3.amazonaws.com/el/6/ x86_64/chef-­‐11.14.2-­‐1.el6.x86_64.rpm   hIps://opscode-­‐omnibus-­‐packages.s3.amazonaws.com/debian/6/ x86_64/chef_11.14.2-­‐1_amd64.deb   •  Shell   curl  -­‐L  hIps://www.opscode.com/chef/install.sh  |   bash   •  Gem  (not  recommend)   gem  install  chef From  hIp://www.getchef.com/chef/install/  
  • 13. Agenda 1. Goal   2. About  Chef   3. Install  Chef   4. Chef  Basic  Usage
  • 14. Chef-­‐solo  Basic  Usage 1. Repository  crea.on  (knife  solo  init   [Path])   2. Chef-­‐solo  config  fie  crea.on   3. Get/Create  cookbook   4. Node  file  included  run_list  crea.on   5. Chef-­‐solo  execu.on  
  • 15. 1.  Repository  crea.on •  Command   –  knife  solo  init  [Path]   ※Before  this  command,  setup  knife  through  [knife  configure]   •  Detail  of  under  repository   –  Cookbooks  :  The  store  of  published  cookbook   –  data_bags  :  A  piacere  data  store  which  we  can  refer   –  Environments  :  The  informa.on  to  map  an  organiza.on’s   real-­‐life  workflow   –  Nodes  :  The  informa.on  that  is  configured  to  be   maintained  by  chef  client   –  Roles  :  The  informa.on  to  define  certain  paIerns  and   processes   –  site-­‐cookbooks  :  The  store  of  self  cookbook
  • 16. 2.  Chef-­‐solo  Configure  File •  cookbook_path   The  path  of  cookbooks  (This  is  separated  by  comma)   •  file_backup_path   The  path  of  backup  file   Default:  /var/chef/backup   •  file_cache_path   The  path  to  cache  data  which  is    temporary  and   cookbook   •  log_level   The  level  of  log  which  is  wriIen  to  file   Default:  auto  (other:  debug,  info,  warn,  error,  fatal)   If  you  more  learn,  please  check  hIp://docs.getchef.com/config_rb_solo.html  
  • 17. 3.  Get/Create  cookbook •  In  the  case  to  get  external  such  as  community   – The  environment  which  is  needed  proxy   •  Write  the  followings  to  .chef/knife.rb  (Under  the   repository)   –  hIp_proxy  “hIp://VIP:PORT”   –  hIps_proxy  hIp://VIP:PORT   – knife  cookbook  site  download  “[Recipe-­‐Name]”   •  We  can  get  the  file  formaIed  tar.gz  from   hIps://supermarket.getchef.com/cookbooks     •  Ajer  unpacking,  we  need  to  move  it  to  cookbook   directory  
  • 18. 3.  Get/Create  cookbook •  In  the  case  of  self  cookbook   – knife  cookbook  create  [Recipe-­‐name]  –o  site-­‐ cookbooks   – The  above  command  creates  unnecessary   directories.  So  we  need  to  delete  these.   – On  the  other  hand,  we  create  only  needed   directories  by  mkdir  command  
  • 19. 3.  Detail  the  under  the  Recipe •  Detail  of  under  Recipe   •  recipes  (default.rb  is  wriIen  to  main)   The  processing  file   •  Templates   The  file  which  changes  dynamically  (such  as  configura.on  file)   This  exten.on  is  .erb.  In  basic  usage,  target  file  is  set  under  this   ajer  crea.ng  default  directory   •  aIributes  (default  value  is  wriIen  on  default.rb)   The  default  value  selng  file   •  files   The  file  which  not  change  (such  as  upload  file)   In  basic  usage,  target  file  is  set  under  this  ajer  crea.ng  default   directory   If  you  more  learn,  please  check  hIp://docs.getchef.com/essen.als_cookbooks.h
  • 20. 4.  Node  file  crea.on •  Set  a  variable  value   •  Set  recipe  which  we  use  (run_list)  
  • 21. Reference •  公式サイト   –  h#p://www.getchef.com/   •  今更聞けない人の為の Chef  再入門 –  h#p://blog.schoolwith.me/chef-­‐re-­‐introduc:on/   •  Chef入門 ドットインストール –  hIp://do.nstall.com/lessons/basic_chef   •  Chef入門   –  hIp://tatsu-­‐zine.com/books/chef-­‐solo   •  Chef活用ガイド   –  hIp://books.rakuten.co.jp/rk/ fec960065935329eb2ae093098277f99/