Rapid Prototyping with Vagrant and Chef

John Fink

Digital Scholarship Librarian

McMaster University

e: john.fink@gmail.com

t: @adr

g: jbfink

GO AWAY

Why develop with virtual machines?

messy desk!
SW clones
scooter!

What is Vagrant?

vagrantup.com
virtualbox
A plus sign
Ruby logo
equals!
AWESOME

A PLUG FOR RUBY

What is Chef?

opscode.com

package "apache2" do
  package_name node['apache']['package']
end

service "apache2" do
  case node['platform_family']
  when "rhel", "fedora", "suse"
    service_name "httpd"
    # If restarted/reloaded too quickly httpd has a habit of failing.
    # This may happen with multiple recipes notifying apache to restart - like
    # during the initial bootstrap.
    restart_command "/sbin/service httpd restart && sleep 1"
    reload_command "/sbin/service httpd reload && sleep 1"

Any questions?