Similar setup as well:

# pwd
/etc/puppet/templates
# cat header.erb
##########################################################################
#
                                                                    #
# This file is centrally managed, any manual changes will be
OVERWRITTEN                       #
#
#
##########################################################################

I then use a define called get::template which ensure that the header.erb is
applied to every template that is created.

On Mon, Jun 21, 2010 at 10:33 AM, Disconnect <dc.disconn...@gmail.com>wrote:

> That is what we do (and we enforce it by convention rather than
> technically.)
>
> # MANAGED BY PUPPET!
> # /modules/foo/templates/bar.conf
> # ..any associated warnings, weirdness (eg template called from other
> module) etc
>
> On files that other groups might be touching, we add something like:
> # Changes WILL BE overwritten every 30 mins! Any permanent changes must be
> checked
> # into git under "foo/puppet/".
>
> On Mon, Jun 21, 2010 at 10:16 AM, Joe McDonagh <
> joseph.e.mcdon...@gmail.com> wrote:
>
>> On 06/20/2010 03:37 PM, Psyber wrote:
>>
>>> Anyone have any ideas on adding a default header to puppet managed
>>> files and templates?
>>> This might be tricky because of the different methods of adding
>>> comments for different types of files but I'm certainly open to
>>> suggestions that would enforce the existence of a header.
>>>
>>>
>>>
>> Generally I add in by hand, and I make sure it says whether this is
>> managed as a template or plain file, and what module it can be found in.
>>
>>
>> --
>> Joe McDonagh
>> Operations Engineer
>> AIM: YoosingYoonickz
>> IRC: joe-mac on freenode
>> "When the going gets weird, the weird turn pro."
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to puppet-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to