Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to Chef
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Mehdi Lahmam B.
May 12, 2012
Technology
240
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction to Chef
A quick introduction to Chef
Mehdi Lahmam B.
May 12, 2012
More Decks by Mehdi Lahmam B.
See All by Mehdi Lahmam B.
Beyond code: Becoming a Product Engineer
mehlah
0
76
Possible to measure developer productivity?
mehlah
0
77
PG FDW FTW
mehlah
0
200
Product culture
mehlah
0
110
OpenAPI and AsyncAPI specifications as contracts
mehlah
0
710
Technical Debt
mehlah
1
330
Data informed growth
mehlah
0
280
Serverless Ruby and AWS Lambda
mehlah
0
200
Middleware all the things
mehlah
2
900
Other Decks in Technology
See All in Technology
Where Is JetBrains AI Heading- — Central CLI, Air Alpha, and the Agentic Development Stack
x5gtrn
PRO
0
140
GuardDuty 検知対応を DevOps Agent で効率化しようとしている話 / GuardDuty Investigations with DevOps Agent
masahirokawahara
1
330
【視聴者参加型!】AWSセキュリティアンチパターンクイズ
syoshie
0
450
Tab5をRubyで動くパソコンにする
kishima
2
250
『止めない』を設計する — 制約の中で、事業の根幹を支える判断
hiroyaterui
0
220
「重なり」は迎える側がつくる ― 人もAIエージェントも歓迎するプロダクトエンジニアリング ―
go0517go
PRO
0
260
動画配信アプリでの Engage SDK 導入 — TVer Android が Play ストアにコンテンツを届けるまで
techtver
PRO
0
140
Guerilla InnerSource in enterprises, during the AI hype
onenashev
PRO
0
150
AndroidでHDRメディアを「壊さずに」扱う
chigichan24
0
420
AI活用の現在地、 ちゃんと見えてますか?/XPfest-2026
visional_engineering_and_design
0
160
Nav2、Nav3 ... はたまた自作?〜 作って理解する Nav3 の設計意図 〜 / Nav2, Nav3 ... or Build Your Own? — Understanding Nav3's design intent by building it from scratch
yanzm
0
260
Sony-DroidKaigi2026
sony
1
350
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
320
sira's awesome portfolio website redesign presentation
elsirapls
0
410
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
410
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
490
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
270
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
590
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
520
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
580
Transcript
Chef cd ~/scripts && find . -type f -name "*.sh"
-exec rm -rf {} \;
@mehlah
You’ve got a cloud. Now what ?
a ruby-based system integration framework designed to bring the benefits
of configuration management to your entire infrastructure Chef is
Huh ?
a Configuration management system a System integration platform an API
for your entire infrastructure
1st release Jan 15, 2009 Initial commit Mar 05, 2008
Chef Solo
Awesome!
Awesome! Bummer! We’ve only scratched the surface
Chef Server
source: http://wiki.opscode.com/display/chef/Architecture+Introduction
source: http://wiki.opscode.com/display/chef/Architecture Server Architecture
Disclaimer: The previous slide is here only to add an
engineering touch to this talk. You can safely ignore it !
In plain words 1. Clients talks to a Chef server,
and asks for their configuration. 2. Clients run ruby code on themselves, to converge to the aimed configuration
A lot of layers in Chef have attributes : Environments,
Nodes, Roles and Cookbooks.
Chef groups Nodes into Environments. You can have as many
environments as you like. Nodes have one or more Roles applied to them. A Role is comprised of one or more Cookbooks.
Cookbooks are comprised of one of more Recipes, Templates, Files
and more.
Tadaaaaa!
Cool stuffs
{ "id": "mehlah", "name": "Mehdi Lahmam B.", "uid": "2001", "group":
"www-data", "home": "/home/mehlah", "roles": [ "unix", "sudo" ], "ssh_keys": [ "akeystring" ] } Data bags
Search search(:node, "*:*") {|n| nodes << n } through Data
Bags, Roles, Nodes and more... knife search role "name:production*" knife search node 'platform:ubuntu' knife search admins 'id:christophe' search(:node, 'dmi_system_manufacturer:Dell*').each do |node| puts node[:dmi][:system][:serial_number] + "\t" + node[:fqdn] end Examples XJS1NF1 www1.example.org XJS1NF2 www2.example.org XJS1NF3 www3.example.org
Not so cool stuffs
None
Thanks!
Typeface: Arvo Notes on design Colors: #FF9900 #3299BB #424242 #E9E9E9