From the course: Learning Puppet (2017)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
What is a module? - Puppet Tutorial
From the course: Learning Puppet (2017)
What is a module?
- [Instructor] In this video, we'll talk about Puppet modules. A Puppet module is just a set of directories that follow a certain pattern. Puppet knows where to find specific files within a module because of that pattern. First, we have the manifest directory. This is where you'd put your Puppet code. Each class you write should have its own manifest and the names of the file and the class need to follow a specific naming convention. For the main class in a module, the class should have the same name as the module itself, and the file should be manifest/init.pp. For example, in the Puppet nginx module, there's a class called nginx that's defined in manifest/init.pp. The files directory contains any static files such as configuration files that you might want to use with your module. These should be small files. If you need access to larger files such as software package files, it's possible to download those…
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.