Get a taste of writing Puppet code by managing a simple file with Puppet. Learn about how Puppet works, and why multiple Puppet runs don't duplicate work.
- [Instructor] We should be ready now to write some code…in github, deploy it to your puppet server, and then run the…puppet agent to enforce that code on your system.…To begin with, we'll just write our code in a file called…site.pp.…Later, we'll add more abstraction and move this code into…another place.…To create the file in github, just click create new file.…Github will automatically create directories if they…don't exist.…So enter the directory name manifests.…Followed by slash, and then site.pp.…
Site.pp is where the puppet master first looks for…configuration details about a system when the puppet agent…checks in.…Since you only have one node at the moment, your puppet…master, we can just use the node default declaration.…That looks like this:…node, default, then a curly brace, and then closing curly…brace.…To create a file on the system, you'll need to declare a…file resource.…For now we'll just create an empty file in the root…directory called readme.…I'll type file, an open curly brace, and then a single…
- 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.