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 - Puppet Tutorial
From the course: Puppet Essential Training
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…
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
-
-
-
Resources5m 41s
-
(Locked)
Classes5m 23s
-
(Locked)
The node graph4m 36s
-
(Locked)
Generate a node graph2m 50s
-
(Locked)
Defined resource types1m 51s
-
(Locked)
Variables and conditionals5m 29s
-
(Locked)
Iteration2m 17s
-
(Locked)
Facts and functions4m 18s
-
(Locked)
More resources2m 54s
-
(Locked)
✓ Challenge: Simplify a manifest21s
-
(Locked)
✓ Solution: Simplify a manifest1m 13s
-
-
-
-
-
-
-