Hi, I'm trying get Puppet to manage my snmpd instances. I have a "base" snmpd.conf constructed from a template, but some hosts require additional config. My plan was to have something like snmpd.conf.$hostname.erb in the templates directory and concatenate this with the base template. However, for the majority of hosts this file will not be present and in those cases I will get a "Could not find template" error.
Is there a method to test for the presence of a file in the template directory, so I can build my template() command accordingly? Thanks, Alan -- 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/-/GSI-4uLTQXQJ. 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.