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 - Puppet Tutorial
From the course: Puppet Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Setting up a control repo3m 42s
-
(Locked)
Review of roles and profiles2m 12s
-
(Locked)
Configure r10k3m 42s
-
(Locked)
Install a webhook6m 24s
-
(Locked)
Configure a webhook in GitHub1m 6s
-
(Locked)
Code environments2m 9s
-
(Locked)
Hiera overview2m 55s
-
(Locked)
YAML1m 48s
-
(Locked)
Encrypt Hiera data with hiera-eyaml4m 1s
-
(Locked)
Set up eyaml in control repo7m 59s
-
-
-
-
-
-