From the course: Puppet Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Hiera overview

Hiera overview - Puppet Tutorial

From the course: Puppet Essential Training

Start my 1-month free trial

Hiera overview

- [Instructor] Take a look at this little snippet of code. It looks pretty innocuous, right? We're creating three user accounts. Now imagine instead of three users, you have 30 or 300. What looks like reasonable code suddenly seems insane. Instead of including data like a list of users in the code, we can use a tool called Hiera to extract that away. This lets us focus on what our Puppet code does, and not get muddled down on mixing data in with the code. Obviously, this is only half the picture, because that look up function needs to get the data from somewhere. Hiera is a tool that comes with Puppet. Its name come from the word hierarchy. So if you're wondering how to pronounce it, just say it the same way you usually say hierarchy. Hiera works by allowing you to set up a hierarchical look up for your data. So that the more specific data can override the general. It might be easier to understand with a visual aid. Imagine that this is the default settings that you'd like for most of…

Contents