6

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.

4 Answers 4

15

It's right there in the Puppet wiki

5

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.

4

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.

3

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .