Feature #1194
closed
Support hooking into host creation/deletion
Added by Benjamin Goldsbury over 13 years ago.
Updated over 12 years ago.
Category:
Plugin integration
|
Description
Since the goal of Foreman is to support life-cycle management, it should have support for doing business-specific tasks based.
For example, we generate custom SSL certificates for various services on each host we run. While this could be accomplished in Puppet, it seems that Foreman is the more logical place to control this behavior.
This could be accomplished via a plugin architecture or just an option of "script to run when creating a host" and "script to run when deleting a host".
would a simple script executed by foreman user would suffice?
at the moment, since there are is no background processing in foreman, the request would block the UI (e.g. the UI would wait until the script would finish)
Seems fine to me. Would be nice if Foreman could capture stdout/stderr and/or warn the user on a non-0 exit of the script.
would you like to get a notice in the UI / email ?
who should be noticed? the owner of the host? the creator of the host?
I think notification through the UI is a reasonable starting place.
I would like to see something like this to have foreman update freeipa upon host creation
- Category set to Plugin integration
- Status changed from New to Resolved
- Assignee set to Joseph Magen
- Target version set to 1.1
Also available in: Atom
PDF