From the course: Learning Puppet
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Solution: Create a base module - Puppet Tutorial
From the course: Learning Puppet
Solution: Create a base module
In this challenge, we created a module called role. This should be pretty much the same process that we used when creating the profile module. First, we'll cd into our module's directory and run pdk new module role. It should save our answers for some of these previous questions. So we'll just hit "Enter" and then select the operating systems, should just be Debian and accept the default of yes. And let's clear the screen. We'll go over to our code and here's our new role module. I'm just going to delete this VS Code directory. That will prevent VS Code from doing some of the autocorrect features. First, let's go in and edit the metadata and make the same fixes we did in the previous module. Again, this is optional. It's just a good habit to be in. So we'll delete Debian and change Ubuntu to the version we're using, 22.04. And we'll save that file, and we can close that then. And we'll go up to manifest and create a new Puppet manifest. And this one is called webserver.pp. So for our…
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.