Hi Paul,

In that case, use a template. Templates are just ERB, so you can run
your security tool from within the template to get the header part of
the file.

--Paul

On Tue, Nov 11, 2008 at 2:41 AM, paul matthews
<[EMAIL PROTECTED]> wrote:
> Hi Paul,
>
> Thanks for the reply. Our set up here is slightly odd in that I need to run
> a security tool which creates motd and then the puppet part adds a few more
> lines with some extra variables. This is my first post to the group btw so
> thanks for the reply. Being relatively new to puppet it so far seems a great
> tool but does seem to be lacking a bit with file manipulation resources. I
> did have a look at augeas but it seemed overly complex for what I was trying
> to achieve. I'll use 'exec' as you suggested
>
> Thanks
> Paul
>
>
>
> 2008/11/11 Paul Lathrop <[EMAIL PROTECTED]>
>>
>> Paul,
>>
>> Besides "exec" there really isn't. However, it seems odd to me that
>> you wouldn't just put those initial lines into your template. Why
>> isn't that a reasonable solution?
>>
>> --Paul
>>
>> On Mon, Nov 10, 2008 at 9:36 AM, paul matthews
>> <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi,
>> >
>> > I have a template file which I would like to append to an existing
>> > file (in this case I wish to add a few lines to /etc/motd). Unless
>> > I've missed it, it does not appear that file has an append option. Is
>> > there an easy way copy to the end of a file
>> >
>> > Thanks
>> > Paul
>> >
>> > >
>> >
>>
>>
>
>
> >
>

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