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

Generate a node graph - Puppet Tutorial

From the course: Puppet Essential Training

Start my 1-month free trial

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…

Contents