The Codex of Business Writing Software for Real-World Solutions 2.pptx
Vagrant: Your Personal Cloud
1. Your Personal Cloud
with Vagrant
a 5 minute lighting presentation
by James Wickett
@wickett
2. Business Bob
frets over his
team’s project...
cloud costs are rising...
testing doesn’t replicate
real environments...
ARRgghhGHHHHHH!
3. I may be smiling on the outside, but
on the inside, I am distraught with
development and testing issues
Sounds like something I can help
with... The name’s Vagrant
4. So, Vagrant what
do you do?
I am a tool for building and
distributing virtualized
development environments.
5. Gee, that’s neat. What
features do you offer?
Coded infrastructure, automated
provisioning, networking, SSH, and
more. I come as a rubygem so if you
pair me with RVM, all the better
6. I’m sold!
Price! It’s Free and Open Source
Automation friendly
Our infrastructure
(net working, images) can be
treated like code and version
controlled
8. ruby (demo with 1.9.3)
latest VirtualBox
vagrant
optional: macports, r vm, chef
gather up some
dependencies and lets
run some commands
9. Demo Time!
$ gem install vagrant
$ vagrant box add web http://
files.vagrantup.com/lucid32.box
$ vagrant box add db http://
files.vagrantup.com/lucid64.box
#adding web and db base boxes
$ vagrant init
$ vagrant up
$ vagrant ssh #ssh into your instance
$ vagrant halt
$ vagrant destroy
$ vagrant up #rinse, wash, repeat
$ vim Vagrantfile #define environment
10. My Vagrantfile
config.vm.define :web do |web_config|
web_config.vm.box = "web"
web_config.vm.for ward_port("http", 80, 8080)
web_config.vm.net work("192.168.192.10")
end
config.vm.define :db do |db_config|
owaspWTE_config.vm.box = "db"
owaspWTE_config.vm.net work("192.168.192.11")
end