O'Reilly logo

Creating Development Environments with Vagrant by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Auto-running commands

One of the key concepts within Vagrant is provisioning. This involves turning a basic virtual machine with a base operating system into a server that is ready to run for your project, meeting your requirements. There are three key provisioning options within Vagrant:

  • SSH
  • Puppet
  • Chef

Puppet and Chef are both third-party tools which Vagrant supports out-of-the-box, and provide specific languages for configuring servers in an agnostic way that can be used for different operating systems. The next two chapters will discuss these in more detail.

SSH provisioning involves running a series of commands on the virtual machine over SSH when the VM is first setup.

There are two ways we can use SSH provisioning. We can either directly run ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required