On Thu, Sep 29, 2011 at 10:22 PM, GeekBiker <[email protected]> wrote:
> I need to exec a program if ANY packages have been modified (added,
> removed, updated, etc).  I tried subscribing to Package with a
> wildcard, but that isn't supported.
>
> Is there any way to trigger an exec if there were any packages changes
> were made or if yum was executed?
>
> Specifically, I need to execute "rkhunter --propupd" so we will stop
> getting false alarms whenever we update a bunch of systems.
>
> --
> 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.
>
>

you could setup a file resource on the rpm db file with mtime, which
notifies an exec, something like

file {"/var/lib/rpm": checksum => mtime, notify => Exec...}

this way every time that file would change, your exec would be triggered.

Ohad

-- 
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