Now that we have a good understanding of how to make our module stateless, let's go ahead and start coding. We will split the coding into two parts. In the first part we will write the module to install and configure Docker UCP. The final topic will be to run Kubernetes as the frontend.
The first thing that we need to do is create a new Vagrant repo for this chapter. By now, we should be masters at creating a new Vagrant repo. Once we have created that, we will create a new module called
<AUTHOR>-ucpconfig and move it to our
modules directory in the root of our Vagrant repo. We will first set up our
servers.yml file by adding the code shown in the following screenshot:
As you can see, we are setting up three servers, where
ucp-01 will ...