15
V for Vagrant

V for vagrant

Embed Size (px)

Citation preview

Page 1: V for vagrant

V for Vagrant

Page 2: V for vagrant

Revealing Hour Creations

Sagar P Junnarkar

[email protected]

@sagarjunnarkar

Page 3: V for vagrant

Why Vagrant?

Page 4: V for vagrant

Why Vagrant?

● Consistent environment(prod & dev)

● Don’t sacrifice tools you are used to working

with(browser, editors, IDE)

● put configuration in version control

● other team members will have the same

environment though they are on mac, linux

or windows

● Keeps host environment clean

Page 5: V for vagrant

What is Vagrant?

● Vagrant is a tool for building and distributing

virtualized development environments.

● A tool that manages VM for you

Page 6: V for vagrant

How do I Install Vagrant?

● Virtual Box

● Vagrant

● Vagrant Box

Page 7: V for vagrant

What is Vagrant Box?

● It is a base image(JeOS)

● JeOS(Just enough operating system)

● naked OS + configurations

● Most of images are already there on

vagrantcloud.com

● You can create your own box also.

● ~/.vagrant.d/boxes

Page 8: V for vagrant

Let’s play with vagrant

Inside project directory

● $ vagrant init hashicorp/precise32

● $ vagrant up

● $ vagrant ssh

● $ vagrant reload

● $ vagrant halt

● $ vagrant destroy

● $ vagrant box add

Page 9: V for vagrant

Synced folder

Host machine and guest machine are synced.

Page 10: V for vagrant

Provisioning

● shell script

● chef recipe

● puppet

Page 11: V for vagrant

Networking

config.vm.network :forwarded_port, guest: 80,

host: 4567

Page 12: V for vagrant

Vagrant share

● Share your Vagrant environment to anyone around the

world

● $ vagrant login

● $ vagrant share

e.g. http://marvelous-cheetah-4666.vagrantshare.com

Page 13: V for vagrant

Demo

Page 14: V for vagrant

Questions?

Page 15: V for vagrant

Thank you