The Spock Guide To Think Out of The Vagrant Box

The Spock Guide To Think Out of The Vagrant Box

Presented at Australasian Open Source Developers Conference 2013, Auckland, New Zealand : A wrapper around VirtualBox and configuration management beauties such as Puppet and Chef, Vagrant is a great piece of open source software to create and configure your ideal development environments, virtually. This talk will try to discuss how a developer, administrator(operator) or both, can take advantage from Vagrant and how it helps in modern days multi­environments server provisioning and of course, to demolish the standard “works on my machine” pretext

101132fd9b22a12e8eb7ce947cf50a87?s=128

Errazudin Ishak

October 21, 2013
Tweet

Transcript

  1. The Spock Guide To Think Out of The Vagrant Box

    Errazudin Ishak
  2. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  3. Who Am I Errazudin Ishak Any-Stack-Dev-Ops Solutions Architect Sakura Sky

    Media since 2012 @errazudin about.me/errazudin
  4. I Was Here 2009 foss.my, MyGOSSCON 2010 Ent. PHP Techtalk,

    BarcampKL, PHP Malaysia, MOSC.my, PHP Northwest UK, MyGOSSCON 2011 Wordpress Conf. Asia, Joomla! Day KL, MOSC.my, OWASP Day KL
  5. I Was Here 2012 OWASP AppSec Asia Pac. Sydney, MOSC.my

    2013 MOSC.my, OSDC NZ (yay!)
  6. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  7. What on earth

  8. Vagrant VM without GUI simple wrapper around vbox/vmware

  9. Vagrant tool for building and distributing development (working) environments

  10. Vagrant lightweight, reproducible, and portable

  11. Vagrant Mac, Windows, Linux

  12. Vagrant working environments made easy (locally or in the cloud)

    Plugins (shell, chef, puppet, cfengine, salt, ansible)
  13. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  14. "Developers are like vampires. They're frequently up all night, paler

    than death itself, and generally afraid of being exposed to daylight. Oh yes, and they tend think of themselves (or at least their code) as immortal." - www.codinghorror.com
  15. “System Administrators are like werewolves. They may look outwardly ordinary,

    but are incredibly strong, mostly invulnerable to stuff that would kill regular people -- and prone to strange transformations during a moon "outage". - www.codinghorror.com
  16. For what reason super duper working container easy to configure,

    reproducible portable work environments
  17. For what reason maximize team productivity and flexibility

  18. Developers <3 Sysadmins

  19. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  20. 1: Get it all warmup Install virtualbox https://www.virtualbox.org/wiki/Downloads Install vagrant

    http://docs.vagrantup.com/v2/installation/index.html
  21. 2: Initialization Download, Initialize $ vagrant init precise64 http://files.vagrantup.com/precise64.box

  22. *3: Hack Your Vagrantfile Port forwarding, Networking, Fine tune resources,

    Provisioning .. *optional, extra fun guaranteed
  23. 4: Dive in Up and away $ vagrant up Bringing

    machine 'default' up with 'virtualbox' provider... [default] Clearing any previously set forwarded ports... [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] Booting VM... [default] Waiting for machine to boot. This may take a few minutes... [default] Machine booted and ready! [default] Configuring and enabling network interfaces... [default] Mounting shared folders... [default] -- /vagrant SSH $ vagrant ssh
  24. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  25. Ok, Now What Remember this?

  26. Ok, Now What Finally...

  27. Developers <3 Everybody

  28. Teamwork devs isolate dependencies and their configuration within a single

    disposable, consistent environment, without sacrificing any of the tools ops disposable environment and consistent workflow for developing and testing infrastructure management scripts dsgnr automatically setup everything required for that web app
  29. V for Victory!

  30. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  31. Hey, can I .. Build my own box from 0?

    How about my own SSH keys?
  32. Hey, can I .. Build my own box from 0?

    YES Custom box with veewee https://github.com/jedi4ever/veewee
  33. Hey, can I .. My own SSH keys? YES config.ssh.*

    default.private_key_path private_key_path default.username username ...
  34. Yay!

  35. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  36. Summary

  37. Summary lightweight, reproducible, and portable working environment maximize team productivity

    and flexibility minimize development $
  38. Dig 'em out https://www.virtualbox.org/wiki/Downloads http://docs.vagrantup.com/v2/installation/index.html http://www.vagrantbox.es/ https://github.com/jedi4ever/veewee https://speakerdeck.com/mheap/vagrant-plus- ansible

  39. Dig 'em out puphpet.com

  40. Dig 'em out docker.io

  41. Dig 'em out github.com/ansible/ansible

  42. Thank You @errazudin errazudin.ishak@gmail.com * no aliens/animals were harmed in

    the making of this presentation. Full credit goes to the photos respective owners and/or photographers