help-cfengine
[Top][All Lists]
Advanced

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

Re: Inconsistent reporting from cfagent -In versus -Ivn?


From: Mark . Burgess
Subject: Re: Inconsistent reporting from cfagent -In versus -Ivn?
Date: Mon, 13 Oct 2003 22:38:32 +0200 (MEST)

You are right, there are still inconsistencies after all this time.
If you can find them in the code and point them out, listwise
with examples of how to fix, then I'll fix this before LISA '03.
However, time is moving on, so don't take too long! :)

M

On 13 Oct, Oddbjorn Steffensen wrote:
> I would like to use cfengine both as for active configuration 
> and verification of the configuration ("trust, but verify").
> 
> Using 2.1.0b5, cfagent -nI does give a list of needed file
> operations, for example:
> 
>   cfengine:host.example.org: file_a had permission 0, changed it to 644
>   cfengine:host.example.org: file_b had permission 0, changed it to 755
> 
> but I need to turn on -v to see the file editing operations that
> would have been performed without the -n. Is this a design descision,
> an uncommon use of cfengine or something a patch would be appreciated
> for?
> 
> The 'editfiles' output from -nIv is okay, but the format is different
> from the file operation messages above: 
> 
>   Begin editing /etc/inetd.conf
>   Appending [finger  stream  tcp nowait  daemon  /local/etc/in.fingerd 
> in.fingerd]
>   End editing /etc/inetd.conf
> 
> while a more consistent report could say:
> 
>   cfengine:host.example.org:/etc/inetd.conf:append:finger  stream  tcp nowait 
>  daemon  /local/etc/in.fingerd in.fingerd
> 
> which is slightly easier to parse and post-process (even
> if there are file editing operations that are easier to
> express over multiple lines).
> 
> Is the cfengine:host:message-style syntax the preferred
> one, and just not employed everywhere quite yet?
> 
> 
> -oddbjorn
> 
> 
> _______________________________________________
> 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]