On Mon, Oct 25, 2010 at 8:12 AM, Alaric <paxindust...@gmail.com> wrote:
> Hi folks, > > This may be a totally dumb question, but hey.. sometimes I'm dumb.... > > recently I've been rocking template's like a crazy person.. and I'm > wondering, is there any reason why I shouldn't use templates for *all* files > I want to manage, rather then have some files defined under files directory > some in templates, and some content defined in the manifest itself.. I'm > thinking that as I train our team to use puppet, having two possible source > of content to look at would be easier then three. Are there any pro/cons to > using templates exclusively? > You may end up with files that have template expansion syntax inside them that you weren't expecting? Have you looked at the file() function? It's very similar to template, but without the templating. Unfortunately it's not quite consistent with the template function, but we are going to fix that. It takes absolute paths, not module-based. https://projects.puppetlabs.com/issues/4885 is the ticket to watch for us adding the "~" syntax and making the file/template functions consistent. > > Thanks! > > -a > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- Nigel Kersten Product Manager, Puppet Labs http://www.puppetlabs.com Twitter: @nigelkersten -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.