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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine