Book Image

Puppet for Containerization

By : Scott Coulton
Book Image

Puppet for Containerization

By: Scott Coulton

Overview of this book

This book teaches you how to take advantage of the new benefits of containerization systems such as Docker, Kubernetes, Docker Swarm, and Docker UCP, without losing the panoptical power of proper configuration management. You will learn how to integrate your containerized applications and modules with your Puppet workflow. You will also understand how to manage, monitor, and orchestrate hosts to keep deployed containers running seamlessly. With the help of this book, you can efficiently automate and document with containers, as a part of your system. The book will also cover use cases of deploying Puppet within a containerized environment.
Table of Contents (16 chapters)

The design of our solution


As there are a lot of moving parts in the solution, it would be best to visualize what we are going to be coding for. As this will be a big step up from our last chapter, we will break down the solution. In the first topic, we will look at the design for our Consul cluster.

The Consul cluster

In the design, we are going to use four servers: node-01, node-02, node-03, and node-04. We will use node-01 to bootstrap our Consul cluster. We will add the other three nodes to the cluster as servers. They will be able to join the conciseness, vote, and replicate the key/value store. We will set up an IP network that is on the 172.17.8.0/24 network. We will map our container ports to the host ports that sit on the 172.17.8.0/24 network. The following image will show the network flow:

The ELK stack

Now that we have our Consul cluster, we can look at what our ELK stack is going to look like. First, we will walk through the design of the network. The stack will be connected to...