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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Jochen Lillich
August 23, 2012
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
More Decks by Jochen Lillich
See All by Jochen Lillich
Under Pressure
geewiz
0
110
Monorepo vs Multirepo
geewiz
0
82
Dealing with IRQ conflicts in 2018
geewiz
0
89
Planning for the Unpredictable
geewiz
0
250
Captaining a Container Ship
geewiz
0
97
Content - Culture - Community
geewiz
0
420
Drupal on Docker
geewiz
0
280
Getting the most out of Varnish (DrupalCamp Galway 2014)
geewiz
0
240
DevOps with Drupal
geewiz
0
350
Other Decks in Programming
See All in Programming
S3 を使うアプリケーションをローカル完結で動かすことに全力を注いでみた / Running S3 Apps Offline
contour_gara
0
550
仕様駆動開発の消費期限
watany
20
8.8k
Claude Code全社展開のためにやったことn選~プラグイン302個・コミッター271人を支えるために~
kenchan
5
1.6k
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
160
GDG Korea Android: 2026 I/O Extended ~ What's new in Android development tools
pluu
0
230
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
280
VibeCodingからAgenticWorkflowへ
starfish719
0
690
楽しそうなつよつよエンジニアと目が死んでる僕/A brilliant engineer having a blast, and dead-eyed me.
3l4l5
2
200
torikago - Ruby::Boxで照らすモジュラモノリスの実行境界
se4weed
1
400
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
230
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
500
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
600
Featured
See All Featured
Claude Code のすすめ
schroneko
67
230k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
30 Presentation Tips
portentint
PRO
1
370
Joys of Absence: A Defence of Solitary Play
codingconduct
1
440
sira's awesome portfolio website redesign presentation
elsirapls
0
330
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
480
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.9k
Everyday Curiosity
cassininazir
0
290
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.8k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
210
Abbi's Birthday
coloredviolet
3
9.4k
We Are The Robots
honzajavorek
0
300
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