* Can Cfengine determine if a config file on a server is different than
expected and report a diff?  How would one go about getting this sort of
behavior/functionality?


The question is sort of "I've already decided to think in Unix shell".
This is not the way cfengine works. You *could* simply do a diff as a
shell command if you want, but the cfengine way is to ask whether the
files satisfy certain properties "is there a line that looks like this"?
"Are there any instances of string X when they should be Y".
The emphasis is on fixing, but you can also warn about incorrect
properties.

These questions are perhaps bigger than they seem, becuase cfengine is
not just a bunch of shell scripts. It has a somewhat different way of
thinking so that it can be "convergent".


Well, I'm only interested in managing Linux systems so yes, I'm only thinking in the Unix/Linux shell and Unix/Linux manner of configuration files. :) I know, its cheating.

With the systems that we deploy, the changes might be made by ourselves (as the system administrators) or by the clients that actually own the systems. So, I would really want to say something like "do the following lines appear exactly as is in the file." Because a characteristic line's existence doesn't mean someone hasn't accidentally fudged with the other lines on a configuration block. And that is what I need to be able to evaluate. "If anything is altered between line A and line B, email me."

-- DK
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to