New alarm GitChk
We just released a new alarm GitChk to track config file changes with GIT
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:
# directory proactivity level: # none => no action # init => only init repo and initial commit # commit => also do automatic commits /etc init
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