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.
YAML
- [Instructor] Hiera is configured through YAML files, which is a structured data format like XML or JSON. YAML is not difficult, and it's much more human readable than a lot of the other options. We'll cover enough of the basics in this lesson that you should be able to use YAML with Hiera. If you'd like to learn more or just want an easy reference with examples, check out yaml.org. YAML files begin with three minus characters. I'm making this an entire slide because it's one of those things that's easy to forget when you first start. You check everything and still can't figure out why your YAML isn't valid. Here's a nice simple YAML file with three key value pairs. It works just the way you'd think. The second example should hopefully make intuitive sense especially since I've given the keys obvious names. There's a key called outer that maps to an object, sometimes called a hash, that maps to another object. Here it is in JSON if that helps make it clearer. The important point here…
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
-
-
-
-
-
-