Puppet manifest example

10,525

Solution 1

It's right there in the Puppet wiki

Solution 2

Here is how I lay out my puppet installed on the puppetmaster

/etc/
  |
  `- puppet/
        |
        +-- manifests/
        |        |
        |        +---- site.pp
        |        |
        |        +---- nodes.pp
        |        |
        |        +---- os/
        |        |      |
        |        |      +- base.pp
        |        |      |
        |        |      `- redhat.pp
        |        |
        |        `---- classes/
        |                  |
        |                  `-- aliases.pp
        |
        +-- modules/
               |
               +-- sshd/
               |     |
               |     +-- files/
               |     |
               |     +-- mainfests/ 
               |     |       |
               |     |       `--- init.pp
               |     |
               |     `-- templates/

My recommendation is to keep as much as possible in modules.

Solution 3

It's not a tarball, but I have written a Puppet tutorial which takes you step by step through creating the required directories and files, and gives you a working template configuration to get started:

http://bitfieldconsulting.com/puppet-tutorial

So far it covers installing Puppet, setting up the starting manifests, how Puppet resources work, authorising your first client, and controlling a simple service.

Solution 4

I'm personally a huge fan of Wikipedia's online repository of Puppet configs. You can read details and find the git clone url from their blog entry.

Share:
10,525

Related videos on Youtube

Jon Haddad
Author by

Jon Haddad

Software engineer at Apple. Committer and PMC member for Apache Cassandra. 20 years of professional software development. In previous lives I've handled operations, put out production fires, and managed teams of various sizes. I've done performance analysis for some of the biggest companies in the world, including multiple telcos, cloud providers, and database companies. I love solving problems and am always learning.

Updated on September 17, 2022

Comments

  • Jon Haddad
    Jon Haddad over 1 year

    Can anyone point me to a full example (tar/zip) directory of a Puppet manifest? I get the guides but it would be way easier just to look at a working directory.