Feature #1012
Puppet should prefer templates in templatedir over a module
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | modules | |||
| Target version: | 0.24.5 | |||
| Affected Puppet version: | Branch: | |||
| Keywords: | ||||
| Votes: | 0 |
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.)
History
Updated by Redmine Admin almost 4 years ago
- Status changed from 1 to Accepted
Updated by Luke Kanies almost 4 years ago
- Target version set to 0.24.5
Updated by Luke Kanies almost 4 years ago
- Status changed from Accepted to Ready For Checkin
- Assignee changed from Luke Kanies to James Turnbull
Fixed in the tickets/0.24.x/1012 branch in my repo.
Updated by James Turnbull almost 4 years ago
- Status changed from Ready For Checkin to Closed
Pushed in commit:463aab8d55cd7d1ba9abd941e82cb2d4483d0e52 in branch 0.24.x