Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

4 Answers 4

up vote 15 down vote accepted

It's right there in the Puppet wiki

share|improve this answer

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|improve this answer

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.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.