[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 18:30:37 +0200 |
C
On Wed, 2005-08-24 at 09:14 -0700, Martin, Jason H wrote:
> So, If I have a timeline of:
>
> T+0: edit the source to be A
> T+1: run cfengine
> T+2: Edit the source to be B
> T+3: Edit the destination to be C
> T+4: Run cfengine
>
> What is the expected contents of the destination?
>
> Thanks,
> -Jason Martin
>
> -----Original Message-----
> From: Mark Burgess [mailto:mark@iu.hio.no]
> Sent: Wednesday, August 24, 2005 9:01 AM
> To: Martin, Jason H
> Cc: Mark Burgess; help-cfengine@gnu.org
> Subject: RE: Copy+editfiles
>
>
> The destination file can be altered as many times as you like. The
> copying only occurs if the *source* is altered last.
>
> M
>
> On Wed, 2005-08-24 at 08:56 -0700, Martin, Jason H wrote:
> > Won't editfiles change the mtime of the destination, this causing CFE
> > to recopy the source over again? Or, does CFE not recopy if the
> > destination is 'newer' then the source?
> >
> > Thanks,
> > -Jason Martin
> >
> > -----Original Message-----
> > From: Mark Burgess [mailto:mark@iu.hio.no]
> > Sent: Wednesday, August 24, 2005 8:25 AM
> > To: Martin, Jason H
> > Cc: Mark Burgess; help-cfengine@gnu.org
> > Subject: RE: Copy+editfiles
> >
> >
> >
> > The file will not be recopied on every run if you use copy by mtime,
> > only when the source file is modified. So it will only be momentarily
> > wrong on the first run.
> >
> > M
> >
> > On Wed, 2005-08-24 at 08:20 -0700, Martin, Jason H wrote:
> > > 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: help-cfengine-bounces+jason.h.martin=cingular.com@gnu.org
> > > [mailto:help-cfengine-bounces+jason.h.martin=cingular.com@gnu.org]
> > > 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
> >
>
- Copy+editfiles, Jason Martin, 2005/08/24
- RE: Copy+editfiles, Martin, Jason H, 2005/08/24
- RE: Copy+editfiles, Martin, Jason H, 2005/08/24
- RE: Copy+editfiles, Martin, Jason H, 2005/08/24
- RE: Copy+editfiles,
Mark Burgess <=
- RE: Copy+editfiles, Martin, Jason H, 2005/08/24
- RE: Copy+editfiles, Martin, Jason H, 2005/08/24