May 2017
Beginner
268 pages
6h 1m
English
Simplicity does not precede complexity, but follows it.
—Alan Perlis
In this chapter, we'll learn about an important and powerful feature of Puppet—the template. We'll see how to use a simple template to interpolate the values of Puppet variables, facts, and Hiera data into a file, and we'll also introduce more complex templates using iteration and conditional statements to generate dynamic configuration files.

In previous chapters, we used Puppet to manage the contents of files on the node by various means, including setting the contents to a literal string using the content attribute ...
Read now
Unlock full access