On Thu, Aug 6, 2009 at 1:53 AM, robbyt<[email protected]> wrote:
>
> Hello All!
>
> I would like to automatically add a header to all files/templates that
> puppet manages on my servers. Something like "#if you break, my puppet
> will fix it!!"
>
> Is this possible?

Not sure if this is the best way, but you could set a variable in your site.pp:

$myheader = "whatever"

I'm pretty sure the template will have access to that variable, but
I'm not positive. Another route would be to create a custom parser
function that sets the variable.... It's simpler than it sounds. :)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to