Creating the Vagrant project
First, we want to create a new project, so let's create a new folder called lemp-stack
and initialize a new ubuntu/trusty64
Vagrant project within it by executing the following commands:
mkdir lemp-stack cd lemp-stack vagrant init ubuntu/trusty64 ub
The easiest way for us to pull in the MySQL Puppet module is to simply add it as a git
submodule to our project. In order to add a git
submodule, our project needs to be a git
repository, so let's initialize it as a git
repository now to save time later:
git init
To make the virtual machine reflective of a real-world production server, instead of forwarding the web server port on the virtual machine to another port on our host machine, we will instead network the virtual machine. This means that we would be able to access the web server via port 80
(which is typical on a production web server) by connecting directly to the virtual machine.
In order to ensure a fixed IP address to which we can allocate a hostname...