-
Book Overview & Buying
-
Table Of Contents
Puppet for Containerization
By :
In this section, we are going to use our module skeleton to build our first Docker application. We are going to write it using standard Puppet manifests.
But first, why is the first module that we are writing Consul? I chose this application for a few reasons. First, Consul has a lot of awesome features such as service discovery and health checks, and can be used as a key/value store. The second reason is that we will use all the features I just mentioned later in the book. So, it will come in handy when we look at Docker Swarm.
Let's create two new files, install.pp and params.pp, in the manifests folder. The structure should look as shown in the following screenshot:

Let's start writing our module. We will start with init.pp; this module is not going to be very complex as we are only going to add a few lines of code and some parameters. As you can see in the preceding screenshot, we created three files in the manifests...