9
Handling Data with Puppet
This chapter will focus on how to handle data using Puppet. It will look at Hiera, Puppet’s key-value data lookup tool, and how it ensures that Puppet’s reusable code is made more configurable without burdening it with excessive logic and variables. The basic structure of Hiera will be reviewed, showing how it stores data in hierarchies that provide a rules-based key lookup without a lot of fuss and how it can look up keys in this data to return values using different backends, which are implementations such as YAML files of data or API calls to applications. The use of automatic parameter lookup will be discussed showing how this allows the parameterized profiles to receive data automatically and how the lookup function ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access