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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Burgess Sent: Wednesday, August 24, 2005 7:54 AM To: Jason Martin Cc: help-cfengine@gnu.org 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 > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine