Chapter 5. Networked Vagrant Environments
In this chapter, we will cover the following topics:
- Creating a local network
- Defining a multimachine environment
- Specifying the order of machine provisioners
- Creating clusters of Vagrant machines
Introduction
Standalone Vagrant environments can meet the needs of a variety of use cases. A common case would be using Vagrant to facilitate web and application development. In this case, forwarding the Vagrant guest web server port (usually port 80
) to a port on the localhost would allow applications hosted on the web server to be accessed through a localhost address. (For example, opening http://localhost:8080
in a browser.)
The port forwarding model might not work well for a few use cases. For example:
- Situations ...
Get Vagrant Virtual Development Environment Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.