----- "Jeff McCune" <[email protected]> wrote: > You could also do this directly in the ERB template itself using > File.exists? and __FILE__ as a reference point. This feels like a > hack though. > > template() already supports concatenation, so it would be difficult > to > add a feature to "search" for the right file, but it would also be > possible to implement a custom function to do this.
Ticket 1818 deals with this and I've written such a function http://pastie.org/666728 See recent list discussion though for fixing that pastie code for 2.6 compatibility -- R.I.Pienaar -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
