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

Creating the Puppet manifests

Let's start by creating some folders for our Puppet modules and manifests by executing the following commands:

mkdir provision
cd provision
mkdir modules
mkdir manifests

For each of the modules we want to create, we need to create a folder within the provision/modules folder for the module. Within this folder, we need to create a manifests folder, and within this our Puppet manifest file, init.pp. Structurally, this looks something, as follows:

|-- provision
|   |-- manifests
|   |    -- init.pp
|    -- modules
 -- Vagrantfile

Installing Apache

Let's look at what is involved in installing Apache (this would be in the file, provision/modules/apache/init.pp). First, we need to ensure the Apache2 package is installed:

class apache { ...

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