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

YAML - Puppet Tutorial

From the course: Puppet Essential Training

Start my 1-month free trial

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…

Contents