I need to include a boiler plate meeage with all the templates. Is there a way, like with an include to call an external file to add the boiler plate. That way only one file needs to be changed to change all the templates. Evan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Evan, Templates are ERB. You can do anything in them you could do with Ruby, really. Check out the documentation: http://stdlib.rubyonrails.org/libdoc/erb/rdoc/index.html --Paul On Mon, Apr 14, 2008 at 2:44 PM, Evan Hisey <ehisey@gmail.com> wrote:> > I need to include a boiler plate meeage with all the templates. Is > there a way, like with an include to call an external file to add the > boiler plate. That way only one file needs to be changed to change all > the templates. > > Evan > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Mon, Apr 14, 2008 at 4:55 PM, Paul Lathrop <paul@tertiusfamily.net> wrote:> > Evan, > > Templates are ERB. You can do anything in them you could do with Ruby, > really. Check out the documentation: > > http://stdlib.rubyonrails.org/libdoc/erb/rdoc/index.html >Paul- I suspected this, only problem is I don''t know ruby from a hole in the wall at the moment. This makes the ERB documentation a bit hard to use. Much like basic variables and the simple logic examples this is one of the template areas that needs to be fleshed out a bit in the puppet doc for non-ruby people. I am sure ruby is easy to learn and to really use the full power of templates I will need to learn it, but for this that should be needed. . Evan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---