(This is part 1 of a multi part series of posts about cool things you can do with Hiera v5 on modern Puppet versions)
In this blog post, I’m going to talk about a new feature added in Hiera v5, which is yaml file globbing.
Hiera is the data access layer for Puppet, and it is organized into hierarchies. When Puppet calls lookup(), it looks through each layer in the hierarchy, in order, and attempts to retrieve the value for a key from the layer. When it can’t find a key in the current layer, it continues on to the next one down, one at a time, until it finds a match.