The Spock Guide To Think Out of
The Vagrant Box
Errazudin Ishak
Agenda
What on earth..
For what reason..
So how to do that..
Ok, now what..
Hey, can I ..
Summary
Who Am I
Errazudin Ishak
Any-Stack-Dev-Ops
Solutions Architect
Sakura Sky Media since 2012
@errazudin
about.me/errazudin
I Was Here
2009

foss.my, MyGOSSCON

2010

Ent. PHP Techtalk, BarcampKL, PHP Malaysia,
MOSC.my, PHP Northwest UK, MyGOSSCO...
I Was Here
2012

OWASP AppSec Asia Pac. Sydney, MOSC.my

2013

MOSC.my, OSDC NZ (yay!)
Agenda
What on earth..
For what reason..
So how to do that..
Ok, now what..
Hey, can I ..
Summary
What on earth
Vagrant
VM without GUI
simple wrapper around vbox/vmware
Vagrant
tool for building and distributing
development (working)
environments
Vagrant
lightweight, reproducible, and
portable
Vagrant
Mac, Windows, Linux
Vagrant
working environments made easy
(locally or in the cloud)
Plugins (shell, chef, puppet,
cfengine, salt, ansible)
Agenda
What on earth..
For what reason..
So how to do that..
Ok, now what..
Hey, can I ..
Summary
"Developers are like vampires. They're frequently
up all night, paler than death itself, and generally
afraid of being exp...
“System Administrators are like werewolves. They may
look outwardly ordinary, but are incredibly strong,
mostly invulnerab...
For what reason
super duper working container
easy to configure, reproducible
portable work environments
For what reason
maximize team productivity and
flexibility
Developers <3 Sysadmins
Agenda
What on earth..
For what reason..
So how to do that..
Ok, now what..
Hey, can I ..
Summary
1: Get it all warmup
Install virtualbox

https://www.virtualbox.org/wiki/Downloads

Install vagrant

http://docs.vagrantup...
2: Initialization
Download, Initialize
$ vagrant init precise64
http://files.vagrantup.com/precise64.box
*3: Hack Your Vagrantfile
Port forwarding, Networking, Fine tune
resources, Provisioning ..

*optional, extra fun guarante...
4: Dive in
Up and away
$ vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any pr...
Agenda
What on earth..
For what reason..
So how to do that..
Ok, now what..
Hey, can I ..
Summary
Ok, Now What
Remember this?
Ok, Now What
Finally...
Developers <3 Everybody
Teamwork
devs
isolate dependencies and their configuration within
a single disposable, consistent environment,
without sac...
V for Victory!
Agenda
What on earth..
For what reason..
So how to do that..
Ok, now what..
Hey, can I ..
Summary
Hey, can I ..
Build my own box from 0?
How about my own SSH keys?
Hey, can I ..
Build my own box from 0? YES
Custom box with veewee

https://github.com/jedi4ever/veewee
Hey, can I ..
My own SSH keys? YES
config.ssh.*
default.private_key_path
private_key_path
default.username
username
...
Yay!
Agenda
What on earth..
For what reason..
So how to do that..
Ok, now what..
Hey, can I ..
Summary
Summary
Summary
lightweight, reproducible, and
portable working environment
maximize team productivity and
flexibility
minimize de...
Dig 'em out
https://www.virtualbox.org/wiki/Downloads
http://docs.vagrantup.com/v2/installation/index.html
http://www.vagr...
Dig 'em out
puphpet.com
Dig 'em out
docker.io
Dig 'em out
github.com/ansible/ansible
Thank You

@errazudin
errazudin.ishak@gmail.com

* no aliens/animals were harmed in the making of this presentation. Full ...
Upcoming SlideShare
Loading in …5
×

The Spock Guide to Think Out of The Vagrant Box

892 views

Published on

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

Published in: Technology
2 Comments
3 Likes
Statistics
Notes
No Downloads
Views
Total views
892
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
20
Comments
2
Likes
3
Embeds 0
No embeds

No notes for slide

The Spock Guide to Think Out of The Vagrant Box

  1. 1. The Spock Guide To Think Out of The Vagrant Box Errazudin Ishak
  2. 2. Agenda What on earth.. For what reason.. So how to do that.. Ok, now what.. Hey, can I .. Summary
  3. 3. Who Am I Errazudin Ishak Any-Stack-Dev-Ops Solutions Architect Sakura Sky Media since 2012 @errazudin about.me/errazudin
  4. 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. 5. I Was Here 2012 OWASP AppSec Asia Pac. Sydney, MOSC.my 2013 MOSC.my, OSDC NZ (yay!)
  6. 6. Agenda What on earth.. For what reason.. So how to do that.. Ok, now what.. Hey, can I .. Summary
  7. 7. What on earth
  8. 8. Vagrant VM without GUI simple wrapper around vbox/vmware
  9. 9. Vagrant tool for building and distributing development (working) environments
  10. 10. Vagrant lightweight, reproducible, and portable
  11. 11. Vagrant Mac, Windows, Linux
  12. 12. Vagrant working environments made easy (locally or in the cloud) Plugins (shell, chef, puppet, cfengine, salt, ansible)
  13. 13. Agenda What on earth.. For what reason.. So how to do that.. Ok, now what.. Hey, can I .. Summary
  14. 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. 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. 16. For what reason super duper working container easy to configure, reproducible portable work environments
  17. 17. For what reason maximize team productivity and flexibility
  18. 18. Developers <3 Sysadmins
  19. 19. Agenda What on earth.. For what reason.. So how to do that.. Ok, now what.. Hey, can I .. Summary
  20. 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. 21. 2: Initialization Download, Initialize $ vagrant init precise64 http://files.vagrantup.com/precise64.box
  22. 22. *3: Hack Your Vagrantfile Port forwarding, Networking, Fine tune resources, Provisioning .. *optional, extra fun guaranteed
  23. 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. 24. Agenda What on earth.. For what reason.. So how to do that.. Ok, now what.. Hey, can I .. Summary
  25. 25. Ok, Now What Remember this?
  26. 26. Ok, Now What Finally...
  27. 27. Developers <3 Everybody
  28. 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. 29. V for Victory!
  30. 30. Agenda What on earth.. For what reason.. So how to do that.. Ok, now what.. Hey, can I .. Summary
  31. 31. Hey, can I .. Build my own box from 0? How about my own SSH keys?
  32. 32. Hey, can I .. Build my own box from 0? YES Custom box with veewee https://github.com/jedi4ever/veewee
  33. 33. Hey, can I .. My own SSH keys? YES config.ssh.* default.private_key_path private_key_path default.username username ...
  34. 34. Yay!
  35. 35. Agenda What on earth.. For what reason.. So how to do that.. Ok, now what.. Hey, can I .. Summary
  36. 36. Summary
  37. 37. Summary lightweight, reproducible, and portable working environment maximize team productivity and flexibility minimize development $
  38. 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-plusansible
  39. 39. Dig 'em out puphpet.com
  40. 40. Dig 'em out docker.io
  41. 41. Dig 'em out github.com/ansible/ansible
  42. 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

×