> Is something like that maybe part of Host Aspects that Lukas mentioned
> above?
We could extend hooks and provide some simple API to fire off our own
events. Then we can implement custom ones.
> Is something like that maybe part of Host Aspects that Lukas mentioned
> above?
We could extend hooks and provide some simple API to fire off our own
events. Then we can implement custom ones.
You can add custom ones today, which would be great if you put them into
Host::Discovered for "interesting" events - perhaps conversion to
Host::Managed, or registration type events triggered by the discovered host?
They're just Rails callbacks, so as simple as:
–
Dominic Cleal
dominic@cleal.org
> You can add custom ones today, which would be great if you put them into
> Host::Discovered for "interesting" events - perhaps conversion to
> Host::Managed, or registration type events triggered by the discovered
> host?
>
> They're just Rails callbacks, so as simple as:
>
> https://github.com/theforeman/foreman/blob/1.10.0-RC2/app/models/host/managed.rb#L35-L37
>
>
Do you, guys, need a feature request for this?
That's a good idea, file it in Discovery and then it might get picked up.
–
Dominic Cleal
dominic@cleal.org
> > Do you, guys, need a feature request for this?
>
> That's a good idea, file it in Discovery and then it might get picked up.
http://projects.theforeman.org/issues/12614
Patches welcome!