help-cfengine
[Top][All Lists]
Advanced

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

Re: Copy+editfiles


From: Mark Burgess
Subject: Re: Copy+editfiles
Date: Wed, 24 Aug 2005 16:54:07 +0200

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





reply via email to

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