Vagrant Basic Shell Provisioning
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=aYBkcdag500
Basic Shell Provisioning with Vagrant • When setting up a new Vagrant machine for solo or team development, you may have a list of dependencies or prerequisites that you need to be running on the machine. In this video we will look how to do this also known as provisioning in Vagrant with a single machine. • Why use Vagrant provisioning? • Provisioning with Vagrant allows you to automatically configure virtual machines, install software and other options as part of vagrant up process. Depending on your use case, Vagrant has you covered - whether you need a basic shell script what we look at in this video for a single machine or you need to set up a large scale infrastructure with Chef or Docker. • Vagrant supports multiple types of provisioning; • Shell provisioning http://docs.vagrantup.com/v2/provisio... • Chef based provisioning http://docs.vagrantup.com/v2/provisio... • Docker based provisioning http://docs.vagrantup.com/v2/provisio... • And many more... • You can read more on the official Vagrant provisioning documentation: http://docs.vagrantup.com/v2/provisio... • Commands that were used in the video *in chronological order*: • 1. vagrant init • 2. sudo nano Vagrantfile • 3. vagrant up • 4. sensible-browser http://10.0.0.1 • Code that was added into the Vagrantfile: • config.vm.box = ubuntu/trusty64 • config.vm.network private_network , ip: 10.0.0.1 • config.vm.provision shell , inline: LessThanArrowLessThanArrow-SHELL • sudo apt-get update • sudo apt-get install -y nginx • SHELL • Looking for a list of boxes / images to use with Vagrant? Check out Atlas! https://atlas.hashicorp.com/boxes/search • DISCLAIMER: I am not responsible for any damage this may cause to your computer / machine. Follow this video and commands at your own risk.
#############################
