From the course: Puppet Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Types and providers

Types and providers - Puppet Tutorial

From the course: Puppet Essential Training

Start my 1-month free trial

Types and providers

- [Instructor] So far we've been using defined resource types and classes, which really provide a lot of functionality. In this lesson, we'll be looking at the layer below that, the system that actually provides the built-in resource types used by Puppet. There are two parts to a resource. First, there is the type definition. This is the file that describes the properties of the resource. What parameters it takes, et cetera. Second, a resource has one or more providers. A provider is what connects the abstract type to the real implementation. It's possible to have multiple providers for a single type, because each provider works for a different operating system. For example, the commands and system calls to create a directory in Windows are different than in Linux. So, even though there's one type for defining a file, there are multiple providers to create that file on the operating system. One nice thing about Puppet types and providers is that you can actually look at the code that…

Contents