----- Original Message ----- > From: "GriffaA10" <[email protected]> > To: [email protected] > Sent: Friday, June 29, 2012 3:37:29 PM > Subject: Re: [Puppet Users] Optional template files? > > Great, that's done the trick, thanks > > Just one thing to note. file() takes an absolute file path (i.e. > /etc/puppet/modules/snmp/templates/snmpd.conf.erb). Spent a few > minutes trying to figure out the error I was getting before finally > RTFM.
indeed, not ideal especially with environments. Ages ago I wrote a little function to bring to template() the same behaviour as source => [] I dont know if it still works on modern puppet but it was handy http://p.devco.net/27/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
