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
43
PG FDW FTW
mehlah
0
160
Product culture
mehlah
0
66
OpenAPI and AsyncAPI specifications as contracts
mehlah
0
650
Technical Debt
mehlah
1
280
Data informed growth
mehlah
0
230
Serverless Ruby and AWS Lambda
mehlah
0
170
Middleware all the things
mehlah
2
850
Confident refactors
mehlah
1
120
Other Decks in Technology
See All in Technology
下手な強制、ダメ!絶対! 「ガードレール」を「檻」にさせない"ガバナンス"の取り方とは?
tsukaman
2
460
AWSで始める実践Dagster入門
kitagawaz
1
730
Snowflake Intelligence × Document AIで“使いにくいデータ”を“使えるデータ”に
kevinrobot34
1
110
「その開発、認知負荷高すぎませんか?」Platform Engineeringで始める開発者体験カイゼン術
sansantech
PRO
2
470
初めてAWSを使うときのセキュリティ覚書〜初心者支部編〜
cmusudakeisuke
1
280
自作JSエンジンに推しプロポーザルを実装したい!
sajikix
1
190
Autonomous Database - Dedicated 技術詳細 / adb-d_technical_detail_jp
oracle4engineer
PRO
4
10k
現場で効くClaude Code ─ 最新動向と企業導入
takaakikakei
1
260
Apache Spark もくもく会
taka_aki
0
130
5分でカオスエンジニアリングを分かった気になろう
pandayumi
0
260
サラリーマンの小遣いで作るtoCサービス - Cloudflare Workersでスケールする開発戦略
shinaps
2
470
20250912_RPALT_データを集める→とっ散らかる問題_Obsidian紹介
ratsbane666
0
100
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
Making Projects Easy
brettharned
117
6.4k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Rails Girls Zürich Keynote
gr2m
95
14k
GraphQLの誤解/rethinking-graphql
sonatard
72
11k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
The Pragmatic Product Professional
lauravandoore
36
6.9k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
BBQ
matthewcrist
89
9.8k
Gamification - CAS2011
davidbonilla
81
5.4k
Designing Experiences People Love
moore
142
24k
KATA
mclloyd
32
14k
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