Perfect workflow with vagrant
-
Upload
stephan-steynfaardt -
Category
Software
-
view
1.354 -
download
7
description
Transcript of Perfect workflow with vagrant
PERFECT WORKFLOW WITH VAGRANTSO GOOD IT TAKES YOU BACK IN TIME
WHO?• Stephan Steynfaardt
• Technical Director @ Liquorice
• OpenSource community
• @ssteynfaardt
HTTP://SLIDESHA.RE/1K992HS
HUH?• What
• Why
• How
• OMG THIS IS AMAZING, show me more!!
• Multi-Machine
• Vagrant Cloud
WHAT EXACTLY IS VAGRANT
WHAT IS VAGRANT
#1 DEV EXCUSE
PANIC NOW!!!
• http://programmingexcuses.com/
• Oh, you said you DIDN'T want that to happen?
• That process requires human oversight that nobody was providing
GOT YOUR BACK
GOT YOUR BACK• I did a quick fix last time but it
broke when we rebooted
• Well, at least it displays a very pretty error
• My time was split in a way that meant I couldn't do either project properly
• It must be because of a leap year
VAGRANT SUPPORT• VirtualBox
• VMware
• Hyper-V
• Supports all the major OS
HOW DO I GET STARTED?
HOW?• vagrantup.com
HOW?• vagrantup.com
VAGRANT COMMANDS• vagrant up
• vagrant halt
• vagrant suspend
• vagrant provision
• vagrant ssh
• vagrant destroy
VAGRANTFILE
VAGRANTFILE
VAGRANTFILE
PROVISIONING
PUPHPET TO THE RESCUE
YOU DON’T UNDERSTAND HOW COMPLEX MY PRODUCTION SETUP IS
MULTI-MACHINE
MULTI-MACHINE
• $ vagrant up• $ vagrant up web
MULTI-MACHINE
$ vagrant up /slave[0-9]/
WILDCARD DNS• Simple local web
development with Apache and Dnsmasq
• http://bit.ly/1mL35Ou
• brew install dnsmasq
VAGRANT CLOUD
VAGRANT CLOUD• https://vagrantcloud.com/