Issue #4920 has been updated by martin krafft.
Nigel, thanks for following up. Yes, I think having a template-multi-select would be great. I suppose you could even combine it with existing syntax: an array provides alternatives for a first-found-is-used basis (like source select), and multiple arguments cause concatenation as it does right now. Respecting the functional difference between content and source, it would still be nice if the syntax were unified: 1. both source and content can do multi-select (see above); 2. both source and content can concatenate multiple files; 3. both source and content can use all kinds of URIs (I don't see a reason why a template could not be fetched from remote by the server before being evaluated). ---------------------------------------- Feature #4920: Treat file sources as templates http://projects.puppetlabs.com/issues/4920 Author: martin krafft Status: Needs more information Priority: Normal Assignee: Category: file Target version: Affected version: Keywords: Branch: Under certain circumstances, file sources should be evaluated by ERB. I imagine three possible syntax for that: 1. A parameter: <pre> file { "/tmp/file": source => ["puppet:///$fqdn", "puppet:///somedefault"], erbeval => true } </pre> 2. A prefix: <pre> file { "/tmp/file": source => ["puppet:///$fqdn", "erb:puppet:///somedefault"], } </pre> 3. Using the file extension: <pre> file { "/tmp/file": source => ["puppet:///$fqdn", "puppet:///somedefault.erb"], } </pre> In general, I would like to see the difference between files and templates vanish. However, since ERB is dreadfully slow, that might not be desired. Hence I would suggest a combination of (1.) and (2.) (stupid redmine syntax parsing idiocy): erbeval defaults to false, in which case only the sources prefixed with "erb:" are evaluated. If erbeval is true, all sources are evaluated (and the prefix ignored). If wanted, a "noerb:" could also be introduced. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
