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.
Generate a node graph - Puppet Tutorial
From the course: Puppet Essential Training
Generate a node graph
- [Instructor] Now that we've covered the concept, let's actually use some dags. In a web browser, go to validate.puppet.com. This is a handy code validator in general but it will also generate graphs from your code. Just click the Show Relationships checkbox. Let's start by pasting in the first example without any relationships defined and clicking Show Relationships. First, you'll notice there are two extra things that we didn't define. These are just how Puppet internally denotes the block of code. Each of these resources comes before the start of the block and after the end of the lock. For the relationships we've defined, you'll notice that they're all next to each other here. This means that as far as Puppet is concerned, they could happen in any order. Puppet tends to follow the order the code is written but that isn't a guarantee. If you remember that the dag is how Puppet thinks about your code, that makes a lot more sense. Now let's try the code with the relationships…
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
-
-
-
-
-
-
-