Vagrant: Your Personal Cloud
-
Upload
james-wickett -
Category
Technology
-
view
5.083 -
download
3
Transcript of Vagrant: Your Personal Cloud
![Page 1: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/1.jpg)
Your Personal Cloud with Vagrant
a 5 minute lighting presentation
by James Wickett @wickett
![Page 2: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/2.jpg)
testing doesn’t replicate real environments...
cloud costs are rising...
Business Bob frets over his
team’s project...
ARRgghhGHHHHHH!
![Page 3: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/3.jpg)
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
![Page 4: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/4.jpg)
So, Vagrant what do you do?
I am a tool for building and distributing virtualized
development environments.
![Page 5: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/5.jpg)
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
![Page 6: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/6.jpg)
I ’m sold!Price! It’s Free and Open Source
Automation friendly
Our infrastructure (networking, images) can be treated like code and version controlled
![Page 7: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/7.jpg)
Great. Let’s take a quick tour of
Vagrant
![Page 8: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/8.jpg)
gather up some dependencies and lets run some commands
ruby (demo with 1.9.3)latest VirtualBoxvagrantoptional: macports, rvm, chef
![Page 9: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/9.jpg)
$ 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
Demo Time!
![Page 10: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/10.jpg)
My Vagrantfile config.vm.define :web do |web_config| web_config.vm.box = "web" web_config.vm.forward_port("http", 80, 8080) web_config.vm.network("192.168.192.10") end
config.vm.define :db do |db_config| owaspWTE_config.vm.box = "db" owaspWTE_config.vm.network("192.168.192.11")
end
![Page 11: Vagrant: Your Personal Cloud](https://reader034.fdocuments.in/reader034/viewer/2022042714/55534f56b4c90503618b5289/html5/thumbnails/11.jpg)
James Wickett Slides will be at theagileadmin.com
twitter: @wickett