[Modularit-devel] New alarm GitChk
Miguel Armas
kuko at canarytek.com
Tue Aug 25 16:10:24 WEST 2009
The new PIFIA alarm GitChk can track changes in configuration files
and alert or autocommit any changes.
As any PIFIA alarm, we can tell it what to do writing config files in
/var/lib/pica/obj/GitChk/GitChk.* In this file, we tell GitChk which
directories we want to track, and the level of proactivity (automatic
actions).
The format is the following:
<pre>
# directory proactivity level:
# none => no action
# init => only init repo and initial commit
# commit => also do automatic commits
/etc init
</pre>
The proactivity levels are:
* none: No action is taken, just generate a notification
* init: If the given directory is not being tracked with git,
initialize the repo and do an initial commit. It will NOT commit any
subsequent check
* commit: always do automatic commits if it finds changes
By default it only tracks */etc* with level *init*
Right now this alert only commit changes to a local repository, it
does not send changes to remote repos.
We have been thinking about this, and since we are supposed to do
backups of everything, we already have all this info in the backup.
We may add support for remote repos in a near future
Salu2!
--
Miguel Armas <kuko at canarytek.com>
CanaryTek Consultoria y Sistemas SL
ModularIT http://www.modularit.org/
More information about the Modularit-devel
mailing list