Hi, I'm pretty sure there is a template directory config option in puppet conf which would default to /var/lib/puppet/templates (you'll need to verify this because I can't at the moment).
If so you should be able to pass that on the command line like so, puppet agent --templatedir <path> <options> Of course you can go on to use modules which expects to find templates in the modules template directory. This is assuming your declaration looks okay, you haven't included your manifest details. THT, Den On 20 Dec 2012 04:21, <r...@certifydatasystems.com> wrote: > Can I use a template in site.pp? > > I have a templates directory in my /etc/puppet directory which has my > template, but i get this error message: > Wed Dec 19 09:19:23 -0800 2012 Puppet (err): Could not retrieve catalog > from remote server: Error 400 on SERVER: Could not find template > 'server.xml.erb' at /etc/puppet/manifests/tcuser.pp:52 on node > qa-bruckner.corp.certifydatasystems.com > > Do I have to configure puppet master somehow to let it know that there is > content in that directory? > > TIA. > > R, > rahul > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/XJVApz3-rR0J. > To post to this group, send email to puppet-users@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. > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.