[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: convergent principle and editfile issue
From: |
Kurt Lieber |
Subject: |
Re: convergent principle and editfile issue |
Date: |
Wed, 21 Jul 2004 21:45:55 +0000 |
User-agent: |
Mutt/1.5.6i |
On Thu, Jul 22, 2004 at 12:33:38AM +0300 or thereabouts, Zeev Fisher wrote:
> For example , i'm trying to find a way which will make sure that only the
> following 2 lines will appear in my hosts.equiv file :
>
> +@examplenetgroup
> examplehost
>
> The netgroup name is constant but the hostname is the hostname of the
> machine itself so i can't use copy.
>
> With all current editfiles feature , except of creating from scratch
> every time the file with emptyentirefileplease and inserts , i can't
> make sure that if someone added there host , it will be removed next
> time cfengine run.
Look into DeleteLinesNotContainingFileItems and/or DeleteLinesNotMatching
--kurt
pgpxrkNJvP9xS.pgp
Description: PGP signature