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.

The node graph

The node graph - Puppet Tutorial

From the course: Puppet Essential Training

Start my 1-month free trial

The node graph

- [Instructor] Let's take a break from syntax for a bit and talk about some concepts. At its heart, Puppet is a language for describing infrastructure staid. The Puppet agent makes this real, but you can also visualize Puppet code as a graph. This is what's known in computer science as a directed acyclic graph or DAG, and it's the heart of how Puppet makes sense of your infrastructure. The name sounds confusing, but it makes sense if you unpack it. It's directed, that is the relationships between the elements have a direction which is represented by the fact that there are arrows between them rather than just lines. It's acyclic which means that there are no cycles. So an arrow never goes back and forms a loop. In our example, this is represented by all the arrows pointing to the right. And finally, the word graph in computer science isn't the same as it's commonly used. Instead it refers to charts like this where the individual elements are connected together in some way. Why is it…

Contents