The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #2779

file fragment manager should be an internal puppet feature

Added by Dan Bode over 4 years ago. Updated over 2 years ago.

Status:AcceptedStart date:11/03/2009
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:file
Target version:-
Affected Puppet version:0.25.1 Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

There is a common pattern in puppet where separate modules want to modify different parts of the same configuration file.

I have discussed the pattern with Teyo and he recommends the following:

  1. Modules manage file fragments and put them into a local dirs
  2. Module responsible for configured service controls a file fragment for default params and concats these file fragments together. (these module should be responsible for things like ensuring)

This pattern is great, but currently a little complicated to implement. Maybe this could be implemented as a provider, separate providers for filefragmentmanagers and filefragments?

History

#1 Updated by R.I. Pienaar over 4 years ago

Have often pondered rewriting my snippet defines into a type, would be great, but always seem to have better things to do!

If you are looking for a solution in the mean time try http://nephilim.ml.org/~rip/puppet/concatfile/

#2 Updated by James Turnbull over 4 years ago

  • Category set to file
  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Luke Kanies

#3 Updated by Luke Kanies over 4 years ago

  • Status changed from Needs Decision to Accepted
  • Assignee deleted (Luke Kanies)

Definitely a good idea.

#4 Updated by Chad Metcalf over 2 years ago

The current state of this seems to still be the concat module. In either https://github.com/puppetlabs/puppet-concat or the more recent (original) https://github.com/ripienaar/puppet-concat. Anyway this would be nice to mainline. Or bring the puppetlabs version more inline with the ripienaar version.

Also available in: Atom PDF