There's one thing missing in our module—specifying the order of our resources.
- [Narrator] Because Puppet is a language…for modeling desired state, the order…of code in your manifest might not…be the order it's executed by puppet.…To be sure we need to add some ordering to the resources.…We can do this by adding what are called meta-parameters.…For now we'll just focus on two,…before and require.…Let's look at our code.…That's in sight, minecraft, manifests, inet.pp.…Our class is actually laid out…in a reasonable order, so this should be fairly easy.…
Puppet will by default use manifest ordering.…But with more complex modules you…really need to be explicit in…defining these relationships.…We could add a before parameter…to the first file resource.…But directories are a special case.…And Puppet will always create a directory…before a file within that directory.…But we do want to make sure that…the jar file exists before the server is started.…So let's add a relationship there.…I'll edit the file.…And I'll go down to the jar file…and here I'll add the meta-parameter before.…
I want to tell it to reference the service minecraft.…
- 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.