SlideShare a Scribd company logo
Vagrant
Team development made easy
Me
Technical Leader @Centralway


Before?
Intraneia
   ● Open-Source, Ubuntu
Deloitte
   ● IT Audits, Security & Privacy
How do we develop..
Local development environment

 MySQL Apache2 Python PEAR RVM
  npm nginx PostgreSQL PHP Ruby
          RoR MongoDB ....


              ???
Local development environment
No Isolation
Not Shareable
Not Repeatable
Alternative?
Virtual Machines
Vagrant
Free and open source

Started on January 21, 2010 by Mitchell
Hashimoto and John Bender.

The first release, 0.1.0 released on March 7,
2010.

Linux, Mac OS X, and Windows
Vision



 The vision of the project is to create a tool to
transparently manage all the complex parts of
     modern development within a virtual
  environment without affecting the everyday
     workflow of the developer too much.
Vagrant
~12000 lines of Ruby
~3500 : test code
~5500 : "plugins"
~3300 : core



          Thats a lot of code!!!
Vagrant - Team Development made easy
Script must...
Import a virtual machine
setup host only networking
setup shared folders
boots the machine
provision the machine
support Mac, Linux, and Windows
guest additions
NFS
and how do we use it?
the basic way
#Fetch the Box
$ vagrant box add base http://files.vagrantup.com/precise32.box

#Init Vagrant on your current folder
$ vagrant init

#Start it!!
$ vagrant up
with various projects...
Vagrant - Team Development made easy
Vagrantfile
Vagrant::Config.run do |config|
  config.vm.box = "debian"
  config.vm.box_url = "http://path/to/vagrantbox.box"

  config.vm.network :hostonly, "10.10.10.10", :adapter=>4
  config.vm.customize ["modifyvm", :id, "--memory", "512"]
end
Vagrantfile
Vagrant::Config.run do |config|
  config.vm.box = "debian"
  config.vm.box_url = "http://path/to/vagrantbox.box"

  config.vm.network :hostonly, "10.10.10.10", :adapter=>4
  config.vm.customize ["modifyvm", :id, "--memory", "512"]

  config.vm.provision :puppet do |puppet|
   puppet.manifests_path = "vagrant/puppet/manifests"
   puppet.manifest_file = "base.pp"
  end

 config.vm.provision :shell, :inline => "/bin/bash /vagrant/myscript.sh"
end
Vagrantfile
Vagrant::Config.run do |config|
  config.vm.box = "debian"
  config.vm.box_url = "http://path/to/vagrantbox.box"

  config.vm.network :hostonly, "10.10.10.10", :adapter=>4
  config.vm.customize ["modifyvm", :id, "--memory", "512"]

  config.vm.provision :puppet do |puppet|
   puppet.manifests_path = "vagrant/puppet/manifests"
   puppet.manifest_file = "base.pp"
  end

 config.vm.provision :shell, :inline => "/bin/bash /vagrant/myscript.sh"
end
Demo time....
important vagrant commands
vagrant up

vagrant provision

vagrant suspend

vagrant halt

vagrant destroy
tips
shared folders vs NFS

golden box vs clean box

similar environments -> helps deployments

Multi-VM Environments
      http://vagrantup.com/v1/docs/multivm.html
tips
veewee
  ● github.com/jedi4ever/veewee

puppet / chef
Thank You



vagrantup.com
vagrantbox.es
github.com/igama/wp-vagrant-demo

More Related Content

PPTX
My journey from PHP to Node.js
PDF
Provisioning with Puppet
PDF
Frasco: Jekyll Starter Project
PPTX
Windows Azure loves OSS
KEY
Open Web Device: The first phone running Firefox OS!
ODP
Building (localized) Vagrant boxes with Packer
PDF
BitTorrent on iOS
ODP
WebSockets with PHP: Mission impossible
My journey from PHP to Node.js
Provisioning with Puppet
Frasco: Jekyll Starter Project
Windows Azure loves OSS
Open Web Device: The first phone running Firefox OS!
Building (localized) Vagrant boxes with Packer
BitTorrent on iOS
WebSockets with PHP: Mission impossible

What's hot (20)

DOC
Virtual boxen
PDF
Построение простого REST сервера на Node.js | Odessa Frontend Code challenge
PDF
Dockerize WordPress on Mac/Windows
PPT
Ferrara Linux Day 2011
PDF
PHP Benelux 2017 - Caching The Right Way
PDF
Intro to Linux - Skillswap
PDF
Create your very own Development Environment with Vagrant and Packer
PDF
Docker e postgresql
PPTX
Vagrant step-by-step guide for Beginners
PDF
Symfony live London 2018 - Take your http caching to the next level with xke...
PDF
Vagrant - Version control your dev environment
PDF
Steam Learn: Composer
PPTX
Infrastructure development on windows ldn cd meetup
PPTX
uWSGI - Swiss army knife for your Python web apps
PDF
Node.js for Rubists
PDF
Introduction to Vagrant
PPTX
Getting Started with Pelican
PDF
Vagrant presentation
PPTX
Vagrant
PPTX
Vagrant
Virtual boxen
Построение простого REST сервера на Node.js | Odessa Frontend Code challenge
Dockerize WordPress on Mac/Windows
Ferrara Linux Day 2011
PHP Benelux 2017 - Caching The Right Way
Intro to Linux - Skillswap
Create your very own Development Environment with Vagrant and Packer
Docker e postgresql
Vagrant step-by-step guide for Beginners
Symfony live London 2018 - Take your http caching to the next level with xke...
Vagrant - Version control your dev environment
Steam Learn: Composer
Infrastructure development on windows ldn cd meetup
uWSGI - Swiss army knife for your Python web apps
Node.js for Rubists
Introduction to Vagrant
Getting Started with Pelican
Vagrant presentation
Vagrant
Vagrant
Ad

Similar to Vagrant - Team Development made easy (20)

PDF
Vagrant workshop 2015
PDF
Vagrant For DevOps
KEY
PPT
Vagrant
PPTX
Vagrant-Overview
PDF
Virtualization with Vagrant (ua.pycon 2011)
PPTX
Vagrant for ci
PDF
Intro to vagrant
PDF
Keep calm and vagrant up
PDF
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
PDF
Vagrant for Virtualized Development
ODP
It Works On My Machine: Vagrant for Software Development
PDF
Improved development workflows using vagrant
PDF
Powering Development and Testing Environments with Vagrant
PPTX
Development with Vagrant
PDF
Vagrant are you still develop in a non-virtual environment-
PDF
PuppetCamp SEA 1 - Using Vagrant, Puppet, Testing & Hadoop
PDF
Using Vagrant, Puppet, Testing & Hadoop
PDF
PuppetCamp SEA 1 - Using Vagrant, Puppet, Testing & Hadoop
PDF
Puppet and Vagrant in development
Vagrant workshop 2015
Vagrant For DevOps
Vagrant
Vagrant-Overview
Virtualization with Vagrant (ua.pycon 2011)
Vagrant for ci
Intro to vagrant
Keep calm and vagrant up
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
Vagrant for Virtualized Development
It Works On My Machine: Vagrant for Software Development
Improved development workflows using vagrant
Powering Development and Testing Environments with Vagrant
Development with Vagrant
Vagrant are you still develop in a non-virtual environment-
PuppetCamp SEA 1 - Using Vagrant, Puppet, Testing & Hadoop
Using Vagrant, Puppet, Testing & Hadoop
PuppetCamp SEA 1 - Using Vagrant, Puppet, Testing & Hadoop
Puppet and Vagrant in development
Ad

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Modernizing your data center with Dell and AMD
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation theory and applications.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
cuic standard and advanced reporting.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Understanding_Digital_Forensics_Presentation.pptx
Review of recent advances in non-invasive hemoglobin estimation
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Modernizing your data center with Dell and AMD
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
Chapter 3 Spatial Domain Image Processing.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation theory and applications.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
cuic standard and advanced reporting.pdf
Network Security Unit 5.pdf for BCA BBA.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Vagrant - Team Development made easy