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
Use Datacenter Tools to Make Your Dev Life Easier
Search
Jochen Lillich
August 23, 2012
Programming
0
99
Use Datacenter Tools to Make Your Dev Life Easier
Talk at DrupalCon Munich 2012 about using Chef and Vagrant in a development environment
Jochen Lillich
August 23, 2012
Tweet
Share
More Decks by Jochen Lillich
See All by Jochen Lillich
Under Pressure
geewiz
0
61
Monorepo vs Multirepo
geewiz
0
64
Dealing with IRQ conflicts in 2018
geewiz
0
58
Planning for the Unpredictable
geewiz
0
190
Captaining a Container Ship
geewiz
0
79
Content - Culture - Community
geewiz
0
370
Drupal on Docker
geewiz
0
230
Getting the most out of Varnish (DrupalCamp Galway 2014)
geewiz
0
230
DevOps with Drupal
geewiz
0
320
Other Decks in Programming
See All in Programming
Rancher と Terraform
fufuhu
0
100
STUNMESH-go: Wireguard NAT穿隧工具的源起與介紹
tjjh89017
0
380
Claude Codeで実装以外の開発フロー、どこまで自動化できるか?失敗と成功
ndadayo
2
1.3k
一人でAIプロダクトを作るための工夫 〜技術選定・開発プロセス編〜 / I want AI to work harder
rkaga
13
2.8k
CSC305 Summer Lecture 06
javiergs
PRO
0
100
Oracle Database Technology Night 92 Database Connection control FAN-AC
oracle4engineer
PRO
1
180
kiroでゲームを作ってみた
iriikeita
0
180
KessokuでDIでもgoroutineを活用する / Go Connect #6
mazrean
0
110
GitHub Copilotの全体像と活用のヒント AI駆動開発の最初の一歩
74th
8
3.2k
CEDEC 2025 『ゲームにおけるリアルタイム通信への QUIC導入事例の紹介』
segadevtech
3
970
The State of Fluid (2025)
s2b
0
200
UbieのAIパートナーを支えるコンテキストエンジニアリング実践
syucream
2
700
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
83
9.1k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
YesSQL, Process and Tooling at Scale
rocio
173
14k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.6k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
110
20k
The World Runs on Bad Software
bkeepers
PRO
70
11k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
Designing Experiences People Love
moore
142
24k
Automating Front-end Workflow
addyosmani
1370
200k
GitHub's CSS Performance
jonrohan
1031
460k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Transcript
freistil.it Use datacenter tools to make your dev life easier
Jochen Lillich
About me
Jochen Lillich @geewiz * 1970 Linux Sysadmin & Trainer IT
Manager at WEB.DE, 1&1 Founder & CTO at freistil IT
freistil IT http://freistil.it @freistil “Ops for Devs” DrupalCONCEPT: Drupal IaaS
Challenge... Local development environments Manual configuration effort Mismatched software versions
Long onboarding times
...accepted! Minimize setup time Make Development = Production Reproduce setup
consistently on demand
Vagrant
“Vagrant uses Oracle’s VirtualBox to build configurable, lightweight, and portable
virtual machines dynamically.” http://vagrantup.com
$ gem install vagrant $ vagrant box add precise64 http://
files.vagrantup.com/precise64.box $ cd ~/myvm $ vagrant init precise64 $ vagrant up $ vagrant ssh Instant VM
Pre-installed OS Available from http://files.vagrantup.com Box
Box – Management $ vagrant box -h $ vagrant package
-h
Box – DIY VeeWee by Patrick Dubois https://github.com/jedi4ever/veewee
Vagrantfile Ruby DSL for VM configuration Can be used for
many VMs
Vagrant::Config.run do |config| config.vm.box = "precise64" config.vm.boot_mode = :gui config.vm.forward_port
80, 8080 end Vagrantfile
“Well, I’ve been doing that for ages with snapshots/ images/other...”
None
“No matter how complex the realities of your business, Chef
makes it easy to deploy servers and scale applications throughout your entire infrastructure.” http://www.opscode.com/chef/
Ruby DSL for system administration tasks Makes only necessary changes
(Idempotence) CM with Chef
Infrastructure as Code Cookbooks Recipes Resources Providers Nodes Attributes Roles
Resources Package Service File, Directory Template Command, Script Cron Git
...
Example package ”apache2” do action :install end service ”apache2” do
action [:enable, :start] end
Example (cont.) template ”/etc/apache2/apache2.conf” do source ”apache2.conf.erb” owner ”root” group
”root” mode 0644 notifies ”reload”, ”service[apache2]” end
Community sites http://wiki.opscode.com http://community.opscode.com http://github.com/opscode-cookbooks
+
Installation $ gem install librarian $ cd ~/myvm $ librarian-chef
init $ $EDITOR Cheffile $ librarian-chef install
Cheffile site ”http://community.opscode.com/api/v1” cookbook ’apache2’ cookbook ’php’ cookbook ’mysql’
roles/drupal.rb name "drupal" description "Drupal dev VM" run_list( "recipe[apache2]", "recipe[apache2::mod_expires]",
"recipe[apache2::mod_rewrite]", "recipe[apache2::mod_php5]", "recipe[php]", "recipe[php::module_mysql]", "recipe[mysql::client]", "recipe[mysql::server]" )
Vagrantfile config.vm.provision :chef_solo do |chef| chef.cookbooks_path = ”cookbooks” chef.roles_path =
”roles” chef.add_role ”drupal-dev” end
Kitchen magic $ vagrant provision
Now do some awesome stuff!
And finally... $ vagrant destroy
Tips Keep all building blocks local: Cache packages Store your
own base boxes Use a central cookbook repository
Conclusion Combining Vagrant and Chef gives us: Dedicated, consistent, disposable
dev setups Efficient onboarding of new devs
Thank you! Please rate my session: http://bit.ly/dc12chef