So that could easily be expanded to call a script that would detect if
there were any diffs and then send an email, I suppose. Or does any output
of the shell command get automatically sent to the sys admin specified?
--On Friday, March 31, 2006 1:56 PM -0600 Brendan Strejcek
<[EMAIL PROTECTED]> wrote:
Digant C Kasundra wrote:
I was wondering how you would address the following in Cfengine:
* Undo last set of actions
cfengine does not support a general rollback operation.
* 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?
Something like this maybe:
copy:
some_class::
/path/to/canonical/file
dest=/etc/shells.desired
...other options...
shellcommands:
some_class::
"/usr/bin/diff /etc/shells /etc/shells.desired"
Best,
Brendan
--
Senior System Administrator
The University of Chicago
Department of Computer Science
http://www.cs.uchicago.edu/people/brendan
http://praksys.blogspot.com/
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine