SlideShare a Scribd company logo
Vagrant
Mitchell Hashimoto
@mitchellh
SF DevOps: Introducing Vagrant
Vagrant
With a focus on Ops
Agenda
Agenda
What is Vagrant
Agenda
 What is Vagrant
Why use Vagrant
Agenda
           What is Vagrant
          Why use Vagrant
DevOps with Vagrant in mind
Vagrant
What is Vagrant?
The Grid
A tool for building and distributing
    virtualized environments.
A local cloud.
Create and tear down virtual machines
Create and tear down virtual machines

Use automation to provision and configure
Create and tear down virtual machines

Use automation to provision and configure

        Network multiple virtual machines
Create and tear down virtual machines

Use automation to provision and configure

        Network multiple virtual machines

       Package and distribute VM images
Vagrant
Why use Vagrant?
User space
                          Browser                       Editor
                                          Queue                       Other
             Music                        Server                      Server

   Web                DB                            App
                                    IRC                          IM
  Server             Server                        Server




                                Operating System
SF DevOps: Introducing Vagrant
No isolation
No isolation

No repeatability
No isolation

No repeatability

 No verification
User space
                      Virtualized OS

   Browser   Editor
                            Web                       App
                                         DB Server
                           Server                    Server

     IRC      IM




                      Operating System
Isolation
Isolation

Mirror production
Isolation

                 Mirror production

Test Ops scripts with a free server
Isolation

                 Mirror production

Test Ops scripts with a free server

                Faster onboarding
Isolation

                 Mirror production

Test Ops scripts with a free server

                Faster onboarding

         Designers can do it, too!
Vagrant
DevOps
Goal: Develop
Cookbooks/Modules to run in a VM
       and production.
Little extra effort.
     Big gain.
Good practices.
Little extra effort.
     Big gain.
Good practices.
Don’t assume EC2/RackSpace/MyCloudInc

# Allow app servers to access DB
-A INPUT -p tcp
  -s <%= node[:ec2][:local_ipv4] %>
  --dport <%= node[:mysql][:port] %>
  -j ACCEPT
Don’t assume EC2/RackSpace/MyCloudInc

# Allow app servers to access DB
-A INPUT -p tcp
  -s <%= local_ip(node) %>
  --dport <%= node[:mysql][:port] %>
  -j ACCEPT
Don’t assume EC2/RackSpace/MyCloudInc

# Returns the local-network IP of a node
# based on the environment.
def local_ip(node)
  return “127.0.0.1” if in_vagrant?
  return node[:ec2][:local_ipv4] if in_ec2?
  raise “Unknown server environment.”
end
Short-circuit Recipes/Manifests


INFO: Chef Run complete in 1442.890442 seconds
INFO: Running report handlers
INFO: Report handlers complete
SF DevOps: Introducing Vagrant
Short-circuit Recipes/Manifests

# Only install certain software when not
# in Vagrant.
if !in_vagrant?
  include_recipe “flume::node”
  include_recipe “kiip_monitoring::client”
  ...
end
Short-circuit Recipes/Manifests


INFO: Chef Run complete in 946.418511 seconds
INFO: Running report handlers
INFO: Report handlers complete




          Not great, but I’ll take 50% speedups.
Flexible Configuration
attributes = {
  :kiip_mongo => {
     :mount_ebs => false
  },
  :kiip_web => {
     :app_source => "folder"
  },
  ...
}
Role Composition
run_list => [
  “role[base]”,
  “role[kiip_mongodb]”,
  “role[kiip_memcached]”,
  “role[kiip_web]”,
  “role[kiip_utility]”
]


                 Normally different servers.
                  But no problem on one!
DevOps Zen
Vagrant
Is it battle tested?
SF DevOps: Introducing Vagrant
SF DevOps: Introducing Vagrant
SF DevOps: Introducing Vagrant
SF DevOps: Introducing Vagrant
SF DevOps: Introducing Vagrant
vagrantup.com
github.com/mitchellh/vagrant

More Related Content

What's hot (20)

PDF
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Marcel Birkner
 
PPT
Amazon Web Services and Docker
Paolo latella
 
PDF
How we dockerized a startup? #meetup #docker
Jonathan Martin
 
PPTX
Intro Docker october 2013
dotCloud
 
PDF
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
Carlos Sanchez
 
PPTX
7+1 myths of the new os
Alexis Richardson
 
PDF
Using Containers for Building and Testing: Docker, Kubernetes and Mesos. FOSD...
Carlos Sanchez
 
PDF
Vagrant + Ansible + Docker
Vijay Selvaraj
 
PPTX
Jenkins talk at Silicon valley DevOps meetup
CloudBees
 
PPTX
Docker - Demo on PHP Application deployment
Arun prasath
 
PPTX
Azure container service docker-ha noi com
Van Phuc
 
PPTX
Vagrant + Docker
David Giordano
 
PPTX
Docker introduction
Anssi Soinu
 
PPTX
Getting started with Docker
Ravindu Fernando
 
PPTX
Automating Dev Environment - Introduction to Docker and Chef
kamalikamj
 
PDF
Docker worshop @Twitter - How to use your own private registry
dotCloud
 
PPTX
Intro to docker
Towfiqul Islam
 
PDF
Delivery Pipeline for Windows Machines
Dmitry Buzdin
 
PPTX
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
dotCloud
 
PDF
From Monolith to Docker Distributed Applications
Carlos Sanchez
 
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Marcel Birkner
 
Amazon Web Services and Docker
Paolo latella
 
How we dockerized a startup? #meetup #docker
Jonathan Martin
 
Intro Docker october 2013
dotCloud
 
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
Carlos Sanchez
 
7+1 myths of the new os
Alexis Richardson
 
Using Containers for Building and Testing: Docker, Kubernetes and Mesos. FOSD...
Carlos Sanchez
 
Vagrant + Ansible + Docker
Vijay Selvaraj
 
Jenkins talk at Silicon valley DevOps meetup
CloudBees
 
Docker - Demo on PHP Application deployment
Arun prasath
 
Azure container service docker-ha noi com
Van Phuc
 
Vagrant + Docker
David Giordano
 
Docker introduction
Anssi Soinu
 
Getting started with Docker
Ravindu Fernando
 
Automating Dev Environment - Introduction to Docker and Chef
kamalikamj
 
Docker worshop @Twitter - How to use your own private registry
dotCloud
 
Intro to docker
Towfiqul Islam
 
Delivery Pipeline for Windows Machines
Dmitry Buzdin
 
Write Once and REALLY Run Anywhere | OpenStack Summit HK 2013
dotCloud
 
From Monolith to Docker Distributed Applications
Carlos Sanchez
 

Similar to SF DevOps: Introducing Vagrant (20)

KEY
Dev ops for developers
Johann-Peter Hartmann
 
PDF
Vagrant at LA Ruby
Mitchell Hashimoto
 
PDF
The future of the php development environment
Jeremy Quinton
 
KEY
DevOps for Developers
Mayflower GmbH
 
PDF
OpenStack Deployments with Chef
Matt Ray
 
PDF
Achieving Infrastructure Portability with Chef
Matt Ray
 
PDF
Australian OpenStack User Group August 2012: Chef for OpenStack
Matt Ray
 
PDF
Up 2012 dave jilk - multi-tenancy in paa s (distribution version)
Khazret Sapenov
 
PDF
Chef for OpenStack - OpenStack Fall 2012 Summit
Matt Ray
 
PDF
Chef for OpenStack- Fall 2012.pdf
OpenStack Foundation
 
PPTX
vBACD - Crash Course in Open Source Cloud Computing - 2/28
CloudStack - Open Source Cloud Computing Project
 
PDF
Consistent Development Environment with Vagrant and Chef
Gerald Villorente
 
PDF
Virtualize and automate your development environment for fun and profit
Andreas Heim
 
PDF
TXLF: Automated Deployment of OpenStack with Chef
Matt Ray
 
PPTX
Overview: Building Open Source Cloud Computing Environments
Mark Hinkle
 
PDF
Devoxx France 2013 Cloud Best Practices
Eric Bottard
 
PDF
Vagrant for Effective DevOps Culture
Vaidik Kapoor
 
PPTX
Automation and Developer Infrastructure — Empowering Engineers to Move from I...
indeedeng
 
PPTX
Industrialization, be fast be furious!
Patrick Morin
 
PDF
Rise of the machines: Continuous Delivery at SEEK - YOW! Night Summary Slides
DiUS
 
Dev ops for developers
Johann-Peter Hartmann
 
Vagrant at LA Ruby
Mitchell Hashimoto
 
The future of the php development environment
Jeremy Quinton
 
DevOps for Developers
Mayflower GmbH
 
OpenStack Deployments with Chef
Matt Ray
 
Achieving Infrastructure Portability with Chef
Matt Ray
 
Australian OpenStack User Group August 2012: Chef for OpenStack
Matt Ray
 
Up 2012 dave jilk - multi-tenancy in paa s (distribution version)
Khazret Sapenov
 
Chef for OpenStack - OpenStack Fall 2012 Summit
Matt Ray
 
Chef for OpenStack- Fall 2012.pdf
OpenStack Foundation
 
vBACD - Crash Course in Open Source Cloud Computing - 2/28
CloudStack - Open Source Cloud Computing Project
 
Consistent Development Environment with Vagrant and Chef
Gerald Villorente
 
Virtualize and automate your development environment for fun and profit
Andreas Heim
 
TXLF: Automated Deployment of OpenStack with Chef
Matt Ray
 
Overview: Building Open Source Cloud Computing Environments
Mark Hinkle
 
Devoxx France 2013 Cloud Best Practices
Eric Bottard
 
Vagrant for Effective DevOps Culture
Vaidik Kapoor
 
Automation and Developer Infrastructure — Empowering Engineers to Move from I...
indeedeng
 
Industrialization, be fast be furious!
Patrick Morin
 
Rise of the machines: Continuous Delivery at SEEK - YOW! Night Summary Slides
DiUS
 
Ad

Recently uploaded (20)

PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Ad

SF DevOps: Introducing Vagrant