Don't use Puppet for this, use AIDE or TRIPWIRE, or Samhain, or the like.

On Tue, Mar 31, 2009 at 04:29, PL <[email protected]> wrote:
>
> This is the situation:
> We have a bunch of config files. We check if mtime changed.
> The line written in syslog is trapped by a monitoring tool and someone
> is warned.
> This works fine...
>
> What we want is
>  1. to backup the file when mtime has changed (and keep x versions)
>  2. execute a diff between new file and last backup and send it by
> mail to so.
>
> I don't see any way to do 1.
> If I try in the file type ... backup => puppet ... it doesn't work.
> The doc says it will be backed up before a change ( for ex with
> source => ... ) but I don't want to change it.
>
> I can do sth like:
> file { "test.txt": ... checksum => mtime }
> exec{ "myscript": ... subscribe => File["test.txt"], refreshonly =>
> true }
>
> with script "myscript" doing a backup, a diff and send the mail, but I
> don't want to reinvent everything.
> How can I use a filebucket ?
>
> NB: these config changes are made by a automatic deploiement system,
> so we cannot manage it in Puppet. But we want to be warn when a change
> occurs to avoid "accidental" manual changes...
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to