chef cluster setup

deploying chef code to production like env

Local Dev

cookbooks
kitchen-docker
knife
node1
node2
node3
node4
chef server
nodes
workstation

chef server

  • hosted or on-prem
  • Create an account
    
  • Create organization
  • Downloaded starter kit
https://manage.chef.io/signup

organization

X

Y

Z

  • multi tenancy
  • one server multi orgs
  • nothing is shared

starter kit

  • provides configs
  • Org specific
    
    
knife.rb
API Keys

workstation

knife
starter kit

+

Chef DK
software
configs
  1. Sign up to hosted chef

  2. create org

  3. download starter kit

  4. validate

GROUP LAB

Setting up Workstation

knife
node1
chef server
workstation
ssh

Bootstrap

  1. install chef
  2. copy configs
  3. run chef-client
  1. bootstrap node1

  2. Upload cookbooks

  3. Add to Run List

  4. Run Chef Client

GROUP LAB

bootstrapping a node

berkshelf

dependency manager
installed with chef DK
yum 
berks
Made with Slides.com