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
Sysops cu Chef by Istvan Hoka
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
GeekMeetRo
September 29, 2012
Programming
210
0
Share
Sysops cu Chef by Istvan Hoka
GeekMeetRo
September 29, 2012
More Decks by GeekMeetRo
See All by GeekMeetRo
Process Improvement by Adrian Cighi
geekmeetcluj
0
240
TodaySoftwareMagazine by Ovidiu Matan
geekmeetcluj
1
110
Stas Sușcov - ”Ember.js și Jasmine BDD. Proiectul TodoMVC.”
geekmeetcluj
1
580
Mai mult decat Unit Teste by Adrian Roiban
geekmeetcluj
1
250
Metodologii de design; design-ul ca proces decizional by David Stroe
geekmeetcluj
2
460
Man vs. Wild: Freelancer Edition by Radu Ceucă
geekmeetcluj
1
500
Other Decks in Programming
See All in Programming
JOAI2026 1st solution - heron0519 -
heron0519
0
120
tRPCの概要と少しだけパフォーマンス
misoton665
2
170
forteeの改修から振り返るPHPerKaigi 2026
muno92
PRO
3
280
Server-Side Kotlin LT大会 vol.18 [Kotlin-lspの最新情報と Neovimのlsp設定例]
yasunori0418
1
140
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
480
「速くなった気がする」をデータで疑う
senleaf24
0
170
Nuxt Server Components
wattanx
0
280
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
250
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
210
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
120
アーキテクチャモダナイゼーションとは何か
nwiizo
17
5.1k
実用!Hono RPC2026
yodaka
2
180
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1032
470k
Mobile First: as difficult as doing things right
swwweet
225
10k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
260
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
It's Worth the Effort
3n
188
29k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Building an army of robots
kneath
306
46k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Skip the Path - Find Your Career Trail
mkilby
1
110
Music & Morning Musume
bryan
47
7.2k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
730
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Transcript
Sysops cu Chef infrastructură sub formă de cod Istvan Hoka
Cluj.rb - clujrb.org www.zencash.com Saturday, September 29, 12
Intro 1. Chef: ce problema rezolva si cum o rezolva
2. Un mod usor de a incerca Chef 3. Folosire Chef la infrastructura pentru inceput Saturday, September 29, 12
Chef h7p://www.opscode.com/chef/ Saturday, September 29, 12
"An open-‐source systems integra@on framework built specifically for
automa@ng the cloud." Saturday, September 29, 12
automa@ng the cloud ? Saturday, September 29, 12
Saturday, September 29, 12
Rails app •Nginx •Unicorn •Rails •MySQL •Redis •Memcache •Solr •Monit
•Cron •Amazon EC2 •Ubuntu •Sysadmin: Gigel Saturday, September 29, 12
The Server Saturday, September 29, 12
Saturday, September 29, 12
Jackpot! Saturday, September 29, 12
Saturday, September 29, 12
The Server Mission accomplished Saturday, September 29, 12
Scaling Saturday, September 29, 12
DB App Take #2 Saturday, September 29, 12
Scaling! Saturday, September 29, 12
App 1 DB Master Index 1 Slave 1 Slave 2
Redis Master Slave Cache 1 Cache 3 Cache 2 Load balancer App 2 App 3 App 4 Take #3 Saturday, September 29, 12
Cum rezolvă Chef problema? Saturday, September 29, 12
DB Master Index 1 Slave 1 Slave 2 Redis Master
Slave Cache 1 Cache 3 Cache 2 Node. Role: LB Chef server Node. Role: App Node. Role: App Node. Role: App Node. Role: App Saturday, September 29, 12
Chef Server knife (chef-client) Node (chef-client) Node (chef-client) Node (chef-client)
Cookbooks Roles Data Bags Nodes Cookbooks Nodes Data Bags Roles Commands Saturday, September 29, 12
Chef Server • HTTP API ‣ knife ‣ chef-‐solo •
CouchDB ‣ cookbooks: libraries, a7ributes, defini@ons, recipes ‣ nodes ‣ roles ‣ data bags • RabbitMQ • Solr • Web UI Saturday, September 29, 12
chef-‐client run • Convergence ‣ Build, Register, and Authen@cate the
Node ‣ Synchronize Cookbooks • Compile ‣ Assemble Libraries, A7ributes, Defini@ons, Recipes • Execute ‣ Converge ‣ Save node ‣ Run no@fica@ons Saturday, September 29, 12
Cookbooks • A7ributes • Defini@ons • Libraries • Templates •
Metadata • Recipes • Ruby, JSON, ERB Saturday, September 29, 12
Chef “Hello World”? •Chef Server •Chef client •Chef workstaLon Saturday,
September 29, 12
Chef Hello World 1. Hosted Chef + AWS EC2 2.
VirtualizaLon Saturday, September 29, 12
Vagrant h7p://vagrantup.com/ Saturday, September 29, 12
Vagrant •Oracle VirtualBox -‐ virtualbox.org •Chef Solo Saturday, September 29,
12
Vagrant setup 1. Install VirtualBox 2. Install Vagrant 3. Setup
Saturday, September 29, 12
Vagran_ile Saturday, September 29, 12
Vagrant Host OS: Windows, OSX, Linux Guest OS (VirtualBox): Linux
/vagrant Apache MySQL Memcache Redis `pwd` Saturday, September 29, 12
•hUps://github.com/opscode-‐cookbooks •hUps://github.com/37signals/ 37s_cookbooks •hUps://github.com/engineyard/ey-‐cloud-‐ recipes •hUps://github.com/cookbooks Cookbooks Saturday, September 29,
12
Vagrant •Web dev pe Linux de pe Windows, OSX •Izolare
•ConfiguraLe repetabila Saturday, September 29, 12
Chef Solo + Capistrano Saturday, September 29, 12
Chef •Infrastructura ca si cod •ConfiguraLe repetabila •Scalabil Saturday, September
29, 12