help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Copy+editfiles


From: Martin, Jason H
Subject: RE: Copy+editfiles
Date: Wed, 24 Aug 2005 08:20:49 -0700

The only problems I see with that is that myfile's contents will
temporarily be 'wrong' every run (the space between the copy and edit),
and it would be difficult to key an action off of the change of myfile
(ie, restart the application) as it is changing every 30 minutes.
However, it is simpler then a huge editfiles stanza.

Thank you,
-Jason Martin

-----Original Message-----
From: address@hidden
[mailto:address@hidden On
Behalf Of Mark Burgess
Sent: Wednesday, August 24, 2005 7:54 AM
To: Jason Martin
Cc: address@hidden
Subject: Re: Copy+editfiles



Of course. Make a masterfile template and copy the file
based on date. Use something like XXX for the hostname,

copy:

  mysourcefile dest=myfile define=copied

editfiles:

  copied::

    { myfile
    ReplaceAll "XXX" With "$(host)"
    }

M

On Wed, 2005-08-24 at 07:31 -0700, Jason Martin wrote:
> I've got a 500 line file that should be the same on all my hosts, save

> that one of the lines need to be customized to the hostname. Does 
> anyone have any tips on how to do this? I'd rather not enter a 
> 500-line editfiles stanza if possible. Is there any way to do a 
> copy+editfiles action?
> 
> Thank you,
> -Jason Martin
> _______________________________________________
> Help-cfengine mailing list
> address@hidden 
> http://lists.gnu.org/mailman/listinfo/help-cfengine



_______________________________________________
Help-cfengine mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-cfengine




reply via email to

[Prev in Thread] Current Thread [Next in Thread]