Feature/new deployment hook - #2790
Conversation
|
Hi @moreamazingnick, I have some problems with this PR, and cannot merge it as is. Main problems:
This all also might result in undesired side-effects related to caching mechanisms, Apply Rule calculation and more. If you want to tackle this, please provide related real-world examples, which led to your requirements. I'm sure we'll find a better solution, to address them. Cheers, |
Thomas-Gelf
left a comment
There was a problem hiding this comment.
Cannot be merged as-is, please address the points in my comment
|
Hi @Thomas-Gelf Thanks for the reply. With these hooks I created something like this in a non prod environment, just a proove of concept:
Why I think it is a good idea:
It sadly moves the problem to the icinga2 infrastructure but the director database is somehow secured. here a module that makes use of these hooks: other ideas where the"modify every object"-hook would help:
Best Regards Nicolas |
refs #2788
@Thomas-Gelf @lippserd
I would like to propose a new deploymenthook function to make changes to the files written to disk.
In addition I would like to propose a BeforeStoreIcingaObjectHook, which allows changes to an IcingaObject before written to the Database.
Please reach out to me if any changes are necessary.
I think linuxfabrik could make use of the deploymenthook function as well.
PullRequest will be created soon.
Best Regards
Nicolas