Re: [Puppet Users] Update time in template file.

Alan Barrett
2010-12-22T06:55:21Z

On Sun, 19 Dec 2010, Stefan Schulte wrote:
> If you really depend on your headerline consider the following:
Don''t
> use Time.now but use something like
>
File.stat(''/etc/puppet/modules/snmp/template/snmp.conf.erb'').mtime.gmtime
> [Maybe theres a way to address the filename from the template itself,
> but I havent figured that out; __FILE__ and ARGV are not working]

Feature request #4359 asks for a way that templates can get their own
name.  It''s not possible at the moment.

--apb (Alan Barrett)