Puppet: System Administration Automated

Support

Ticket #1012 (new enhancement)

Opened 9 months ago

Last modified 6 months ago

Puppet should prefer templates in templatedir over a module

Reported by: adamhjk Assigned to: luke
Priority: normal Milestone:
Component: modules Version: 0.24.1
Severity: normal Keywords: modules templates
Cc: Triage Stage: Accepted
Attached Patches: Code Complexity: Easy

Description

When using modules, Puppet currently prefers the template in the module over a template in :templatedir. I think this should be reversed, which would provide an easy way of allowing users to override a default template in a module. As a sample case, think of a shared "sudo" module, with a sudoers template. Different users may have vastly different standards for such a template, but you could distribute a common workable one with the module itself.

A patch to do this is attached. If puppet finds that a file exists in :templatedir, it prefers it. Otherwise, it falls through to the module (and eventually returns the template path anyway, if it can't do anything else.)

Attachments

puppet-use-template-if-found.patch (1.9 kB) - added by adamhjk on 01/18/08 02:30:13.
Puppet should prefer local templates over module templates

Change History

01/18/08 02:30:13 changed by adamhjk

  • attachment puppet-use-template-if-found.patch added.

Puppet should prefer local templates over module templates

01/18/08 02:43:16 changed by jamtur01

  • keywords changed from modules to modules templates.
  • owner changed from community to luke.
  • complexity changed from Unknown to Easy.
  • stage changed from Unreviewed to Needs design decision.

04/24/08 08:03:32 changed by luke

  • component changed from server to modules.

04/24/08 08:03:52 changed by luke

  • stage changed from Needs design decision to Accepted.