help-cfengine
[Top][All Lists]
Advanced

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

Inconsistent reporting from cfagent -In versus -Ivn?


From: Oddbjorn Steffensen
Subject: Inconsistent reporting from cfagent -In versus -Ivn?
Date: Mon, 13 Oct 2003 14:33:10 +0200
User-agent: Mutt/1.4.1i

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




reply via email to

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