Learn how to write your own module by following the simple example of managing a Minecraft server using Puppet.
- [Lecturer] Now that the basic module…is written let's test it out.…First we'll want to wipe out test node…so that our module will have something to do.…The docker agent module is great for testing…because it's really easy to wipe a node.…We can just say docker kill minetest.puppet.vm…and that's it, our node had been wiped…and we can use it to test our puppet module.…Let's go back over to get github.…So we're going to add a node definition into our site pp.…
We'll edit the file,…and I'm going to add a node definition…for a mine test node. Minetest.puppet.vm.…And in here I will say include role minecraft_server.…Now we still need to define this role…and the profiles that go with it.…So first I'll commit this file.…Go back to the root, then go to site.…Go to the role module, and we'll add a file here.…
This one will be called minecraft_server.pp.…Last name should be role::minecraft_server.…And in this case we want to include the base profile.…Profile base, and the minecraft profile.…Then we'll commit this file.…Now we can go to our profile module,…
- What is Puppet?
- Setting up a Puppet master and control repo
- Using the built-in resource types
- Organizing code with roles and profiles
- Managing more nodes
- Triggering actions (orchestration)
- Gathering system info with facter
- Writing modules
- Using templates
Skill Level Beginner
DevOps Foundations: Infrastructure as Codewith Ernest Mueller2h 6m Intermediate
1. Puppet Overview
What is Puppet?4m 9s
2. Setting Up a Dev Environment
3. First Steps with Puppet
4. Managing More Nodes
Next steps3m 49s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.