
Puppet Cookbook - Third Edition
By :

Sometimes you can't deploy a whole config file in one piece, yet making line by line edits isn't enough. Often, you need to build a config file from various bits of configuration managed by different classes. You may run into a situation where local information needs to be imported into the file as well. In this example, we'll build a config file using a local file as well as snippets defined in our manifests.
Although it's possible to create our own system to build files from pieces, we'll use the puppetlabs supported concat
module. We will start by installing the concat
module, in a previous example we installed the module to our local machine. In this example, we'll modify the Puppet server configuration and download the module to the Puppet server.
In your Git repository create an environment.conf
file with the following contents:
modulepath = public:modules manifest = manifests/site.pp
Create the public directory and download the module...
Change the font size
Change margin width
Change background colour