So I've been messing around lately with the foreman hooks plugin:
https://github.com/theforeman/foreman_hooks
Now, being relatively new to the concept of foreman plugins and finding
some of the documentation rather lacking I was wondering where plugins
store their data? When I restart foreman I can see in my log that a
database connection occurs and the plugin starts to "register" new hooks I
add. What if I want to see this data? Where is it stored? Where would I
go if I wanted to manually remove these registered hooks (because the
plugin doesn't seem to support that functionality itself) if I delete a
hook in a directory?
Thanks!
Depends on the plugin - hooks doesn't store any data in the database at
all, it's just "registering" hooks in memory (i.e. hooking the object
that you added a script for).
For foreman_hooks, just delete the hook and restart Foreman.
···
On 05/02/14 22:13, Daniel Khodaparast wrote:
> So I've been messing around lately with the foreman hooks plugin:
> https://github.com/theforeman/foreman_hooks
>
> Now, being relatively new to the concept of foreman plugins and finding
> some of the documentation rather lacking I was wondering where plugins
> store their data? When I restart foreman I can see in my log that a
> database connection occurs and the plugin starts to "register" new hooks
> I add. What if I want to see this data? Where is it stored? Where
> would I go if I wanted to manually remove these registered hooks
> (because the plugin doesn't seem to support that functionality itself)
> if I delete a hook in a directory?
–
Dominic Cleal
Red Hat Engineering