Specifying the order of machine provisioners

When setting up multimachine environments, it is often important to specify how machines will provision and the order in which they will provision.

Getting ready

Before we start with an example, there are a few important things to keep in mind about the ordering of Vagrant resources:

  • Ordering and dependencies in Vagrant environments are often dependent on the type of resource being provisioned. In the case of desktop hypervisors, a Vagrant boot cycle will proceed in the order in which resources are defined as the Vagrantfile will wait for the process to exit. In the case of provisioning cloud environments, the return to the calling Vagrant process will be nearly immediate (as the call itself is to an asynchronous ...

Get Vagrant Virtual Development Environment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.