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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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, <rsom@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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
----- Original Message -----> From: rsom@certifydatasystems.com > To: puppet-users@googlegroups.com > Sent: Wednesday, December 19, 2012 5:21:10 PM > Subject: [Puppet Users] Template in site.pp > > 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?set templatedir in your configuration file in the [master] section to a directory full of templates. But you really should use modules and not just classes or site.pp like this -- 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.
Thanks! On Dec 19, 2012, at 9:33 AM, "R.I.Pienaar" <rip@devco.net> wrote:> > > ----- Original Message ----- >> From: rsom@certifydatasystems.com >> To: puppet-users@googlegroups.com >> Sent: Wednesday, December 19, 2012 5:21:10 PM >> Subject: [Puppet Users] Template in site.pp >> >> 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? > > set templatedir in your configuration file in the [master] section to > a directory full of templates. > > But you really should use modules and not just classes or site.pp like this > > -- > 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. >
Maybe Matching Threads
- site.pp referring to other manifests without modules
- Unusual permissions problem
- Warning: Local environment: "42A" doesn't match server specified node environment "production", switching agent to "production"
- Problem syncing custom fact
- certificate issue with Branch Testing