From the course: Puppet Essential Training
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
More resources - Puppet Tutorial
From the course: Puppet Essential Training
More resources
- [Instructor] In the beginning of this course, we talked about resources at a very high level. In this lesson, we'll go a little deeper into the details. First, we'll look at the file resource type. We've been using these all along in the example code, but until now we haven't been using a static source file, because the syntax is a little strange. Once you understand the basis for it, it isn't so hard. First, we have the puppet://. This is just like any URL, but it's using Puppet's file serving system instead of a regular web browser. So Puppet uses a custom URI format. So far, this isn't too strange, but what's up with the extra slash? It's actually possible to specify an alternate file server after puppet://. This is actually how the URI syntax works. When you leave the server out, Puppet defaults to using the master as the file server. That's why this always shows up as three slashes. You may be thinking you could take advantage of this feature by hosting your files on a separate…
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.