Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Use Datacenter Tools to Make Your Dev Life Easier

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Use Datacenter Tools to Make Your Dev Life Easier

Talk at DrupalCon Munich 2012 about using Chef and Vagrant in a development environment

Avatar for Jochen Lillich

Jochen Lillich

August 23, 2012
Tweet

More Decks by Jochen Lillich

Other Decks in Programming

Transcript

  1. Jochen Lillich @geewiz * 1970 Linux Sysadmin & Trainer IT

    Manager at WEB.DE, 1&1 Founder & CTO at freistil IT
  2. $ gem install vagrant $ vagrant box add precise64 http://

    files.vagrantup.com/precise64.box $ cd ~/myvm $ vagrant init precise64 $ vagrant up $ vagrant ssh Instant VM
  3. “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/
  4. +

  5. Installation $ gem install librarian $ cd ~/myvm $ librarian-chef

    init $ $EDITOR Cheffile $ librarian-chef install
  6. 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]" )
  7. Tips Keep all building blocks local: Cache packages Store your

    own base boxes Use a central cookbook repository