-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/new deployment hook #2790
base: master
Are you sure you want to change the base?
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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