help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: editfiles not working!?


From: Mark . Burgess
Subject: Re: editfiles not working!?
Date: Mon, 3 Jun 2002 13:48:07 +0200 (MET DST)

"Matching" needs an exact match, I believe, so try

HashCommentLinesMatching "^[^#].*"

to account for the rest of the line.

Mark

On  3 Jun, Marcel Ritter wrote:
> Hi there!
> 
> I recently tried cfengine and I'm quite impressed with it's capabilities.
> But I ran into some trouble, when I tried to use the editfiles statement:
> 
> (The following is part of my setup):
> 
> control:
>    actionsequence = ( editfiles )
> 
> editfiles:
> 
>       { /etc/inetd.conf
> 
>                 HashCommentLinesMatching "^[^#]"
>       }
> 
> 
> And according to my understanding of the documentation, this should add
> "#" at the beginning of each line that does not already have a # in place.
> 
> Unfortunately this does not work. The client gets the setup correctly:
> 
> ...
> DEFINED FILE EDITS
> 
> /etc/inetd.conf (n)(r=0)
>  HashCommentLinesMatching [^[^#]]
> ...
> 
> But no changes occur in the file (/etc/inetd.conf). I already tried
> several other modification statements, but none worked.
> 
> I'd be glad to get some hints about what I am doing wrong!
> 
> Thanx,
>   Marcel
> 
> PS: cfengine version is 2.0.1
> 
> ----
> Marcel Ritter
> Linux Betreuer
> Regionales Rechenzentrum Erlangen
> ----
> Unix _IS_ user friendly... It's just selective about who its friends are.
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]