templates can accept a multiple list of erb files, therefor you could easly
create a define that always include another template(header)
for example (its up to you to test if it works ;))
define mytemplate($template) {
file {$name:
content => template("my header file",$template),
}
}
and than you use it:
mytemplate("/etc/motd":
template => "my template",
}
hope it helps,
Ohad
On Thu, Aug 6, 2009 at 1:53 PM, 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?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---