Devops and You

or "A Brief Introduction to Vagrant"

What is Devops?

  • Developer
    • That's you!
  • Operations
    • Other IT staff
  • Working together
    • communication
    • collaboration
    • integration
    • automation
    • cooperation

But it works on my machine!

Why should you care?

  • Expectation vs Actual
  • (Human) Mistakes
  • Time to deployment
  • Monitor

What is Vagrant?

"Create and configure lightweight, reproducible, and portable development environments."

Installation

The Vagrantfile

Vagrant.configure(2) do |config|
  # Installs the operating system
  config.vm.box           = 'ubuntu/trusty64'

  # Configures the virtual machine
  config.vm.network       'private_network', ip: '192.168.111.10'
  config.vm.synced_folder 'code/', '/home/vagrant/app'

  # Provisions the system
  config.vm.provision     'shell', path: 'provision/bootstrap.sh'
end

Usage

  • Primary commands
    • vagrant up
    • vagrant ssh
    • vagrant destroy
  • Others
    • vagrant provision
    • vagrant halt
    • vagrant suspend
    • vagrant resume
    • vagrant push

Demonstration

Other Talks

Resources

Try it for yourself

Devops and You

By Andrew Tomaka

Devops and You

or "A Brief Introduction to Vagrant"

  • 383
Loading comments...

More from Andrew Tomaka