[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: editfiles problem - revisited - Still nobody having an idea what goe
From: |
Chip Seraphine |
Subject: |
Re: editfiles problem - revisited - Still nobody having an idea what goes wrong? |
Date: |
Tue, 7 Sep 2004 09:39:50 -0500 |
User-agent: |
KMail/1.5.4 |
On Monday 06 September 2004 05:51, Sven Mueller wrote:
> Jamie Wilkinson [u] wrote on 06/09/2004 07:40:
> > If your editfiles script is convergent, then it will just work.
>
> Hmm, looks as if you are right here. So even a
> DeleteLinesMatching "root:.*" followed by "AppendIfNoSuchLine "root:abc"
> won't define anything on if root:abc already exists. Fine.
>
> Now the only problem left is that cfengine doesn't behave as advertised
> with the ReplaceLinesMatchingField directive. Not behaving the way the
> manual suggests isn't good, even if there are Ways to work around that
> particular problem.
I've had similar problems since 2.1.0 when editing crontabs; the
ReplaceLinesMatchingField simply refuses to fire. I ended up just deleting
the matching lines and then appending them; the only problem is that this is
only convergent if nobody else ever edits the file :-)
--
Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
chip@trdlnk.com