Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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

Errazudin Ishak

October 21, 2013
Tweet

More Decks by Errazudin Ishak

Other Decks in Technology

Transcript

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

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

    Media since 2012 @errazudin about.me/errazudin
  3. 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
  4. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  5. Vagrant working environments made easy (locally or in the cloud)

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

    do that.. Ok, now what.. Hey, can I .. Summary
  7. "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
  8. “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
  9. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  10. *3: Hack Your Vagrantfile Port forwarding, Networking, Fine tune resources,

    Provisioning .. *optional, extra fun guaranteed
  11. 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
  12. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  13. 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
  14. Agenda What on earth.. For what reason.. So how to

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

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

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

    default.private_key_path private_key_path default.username username ...
  18. Agenda What on earth.. For what reason.. So how to

    do that.. Ok, now what.. Hey, can I .. Summary
  19. Thank You @errazudin [email protected] * no aliens/animals were harmed in

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