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
Mehdi Lahmam B.
May 12, 2012
Technology
3
230
Introduction to Chef
A quick introduction to Chef
Mehdi Lahmam B.
May 12, 2012
Tweet
Share
More Decks by Mehdi Lahmam B.
See All by Mehdi Lahmam B.
Possible to measure developer productivity?
mehlah
0
29
PG FDW FTW
mehlah
0
150
Product culture
mehlah
0
41
OpenAPI and AsyncAPI specifications as contracts
mehlah
0
630
Technical Debt
mehlah
1
270
Data informed growth
mehlah
0
200
Serverless Ruby and AWS Lambda
mehlah
0
150
Middleware all the things
mehlah
2
830
Confident refactors
mehlah
1
100
Other Decks in Technology
See All in Technology
ウォンテッドリーのデータパイプラインを支える ETL のための analytics, rds-exporter / analytics, rds-exporter for ETL to support Wantedly's data pipeline
unblee
0
140
偏光画像処理ライブラリを作った話
elerac
1
180
Охота на косуль у древних
ashapiro
0
110
AWS Well-Architected Frameworkで学ぶAmazon ECSのセキュリティ対策
umekou
2
150
What's new in Go 1.24?
ciarana
1
110
AWSを活用したIoTにおけるセキュリティ対策のご紹介
kwskyk
0
410
あなたが人生で成功するための5つの普遍的法則 #jawsug #jawsdays2025 / 20250301 HEROZ
yoshidashingo
2
310
AIエージェント入門
minorun365
PRO
32
19k
Aurora PostgreSQLがCloudWatch Logsに 出力するログの課金を削減してみる #jawsdays2025
non97
1
230
入門 PEAK Threat Hunting @SECCON
odorusatoshi
0
170
AIエージェント元年@日本生成AIユーザ会
shukob
1
240
エンジニアリング価値を黒字化する バリューベース戦略を用いた 技術戦略策定の道のり
kzkmaeda
7
3k
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
328
21k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Building a Scalable Design System with Sketch
lauravandoore
461
33k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
175
52k
Typedesign – Prime Four
hannesfritz
40
2.5k
A Philosophy of Restraint
colly
203
16k
Git: the NoSQL Database
bkeepers
PRO
427
65k
Visualization
eitanlees
146
15k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
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