Ask Your Question

Version Control Puppet Manifest

asked 2013-02-22 09:19:00 -0600

louis gravatar image


We are using Puppet Enterprise under CentOs and the default location for the Puppet Manifests is /etc/puppetlabs/puppet. This also includes a folder named ssl that contains the client certificates. We would like to put under version control the contents of the /etc/puppetlabs/puppet folder excluding the ssl folder using Git.

Is this the right way to put the manifest under version control? Should I move the ssl folder and reconfigure the Apache Passenger Configuration?.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-02-23 07:08:39 -0600

llowder gravatar image

There are a couple different ways you can handle this.

The default $modulepath for PE is /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules and the default $manifest is /etc/puppetlabs/puppet/manifests/site.pp

I would recommend that you edit your $modulepath to point to some other location in addition to the default - for example, /etc/puppetlabs/puppet/environments/${environments}/modules:/etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules and then put all your custom / site modules into the new location, leaving the various PE specific modules in place.

This will allow you setup your repos in ... (more)

edit flag offensive delete link more


I vote for tracking each module individually, tracking hiera data individually, and tracking puppet configs individually. Grouping /etc/puppetlabs/puppet into one repo works for a little while, but it ...(more)

Ancillas gravatar imageAncillas ( 2013-02-26 14:19:33 -0600 )edit

I agree - we use one repo per module + one for our node defs (shared across environments) and one for our hiera data (also shared across environments)

llowder gravatar imagellowder ( 2013-02-26 14:24:31 -0600 )edit

I guess i will try the second option by changing the $modulepath and also use our environments as separate repositories. I don't think we need to version each module ...(more)

louis gravatar imagelouis ( 2013-03-02 21:51:55 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-02-22 09:19:00 -0600

Seen: 511 times

Last updated: Feb 23 '13