Slide 1

Slide 1 text

Avoid Deployment Surprises and Frustration with Vagrant Joel Clermont @jclermont

Slide 2

Slide 2 text

Goals

Slide 3

Slide 3 text

Goals • What is Vagrant?

Slide 4

Slide 4 text

Goals • What is Vagrant? • Why might I want to use it?

Slide 5

Slide 5 text

Goals • What is Vagrant? • Why might I want to use it? • How does it work?

Slide 6

Slide 6 text

PROBLEM Wasting time setting up or maintaining a local dev environment

Slide 7

Slide 7 text

PROBLEM “Works on my machine!”

Slide 8

Slide 8 text

Solution

Slide 9

Slide 9 text

Uses virtual machines portable, isolated, project-specific

Slide 10

Slide 10 text

FREE

Slide 11

Slide 11 text

DEMO

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

Pick a “box”

Slide 18

Slide 18 text

Side note: disk space

Slide 19

Slide 19 text

vagrant  init

Slide 20

Slide 20 text

vagrant  up

Slide 21

Slide 21 text

vagrant  ssh

Slide 22

Slide 22 text

Oh no, do I have to use vim or emacs?

Slide 23

Slide 23 text

vagrant  suspend vagrant  halt

Slide 24

Slide 24 text

vagrant  destroy

Slide 25

Slide 25 text

How do I configure my VM?

Slide 26

Slide 26 text

References • Vagrant http://www.vagrantup.com • https://github.com/Varying-Vagrant-Vagrants/VVV • Vagrant cheat sheet: http://www.erikaheidi.com/blog/ quick-user-guide-for-vagrant

Slide 27

Slide 27 text

Ansible Streamlined shell scripts 27

Slide 28

Slide 28 text

playbook.yml

Slide 29

Slide 29 text

init.yml

Slide 30

Slide 30 text

References • Ansible http://docs.ansible.com • Ansible template https://github.com/joelclermont/ vagrant-ansible-template • Brad’s HHVM http://webdevstudios.com/2014/07/17/ setting-up-wordpress-nginx-hhvm-for-the-fastest- possible-load-times/ • Vagrant HHVM https://github.com/keichan34/wp- nginx-hhvm-mariadb

Slide 31

Slide 31 text

Next Steps https://leanpub.com/vagrantcookbook

Slide 32

Slide 32 text

Next Steps August 22 http://daycamp4developers.com

Slide 33

Slide 33 text

Questions?

Slide 34

Slide 34 text

Thank you! ! joelclermont.com @jclermont