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
More poolmon improvements #13
Conversation
@fraenki, did you consider adding a knockout prefix instead of disabling deep merging? |
Maybe I'm missing something, but a knockout prefix could be used to remove values, but I want to replace values. For example, the default for |
Thinking about this a little further, it seems to be possible to remove all defaults and add new values at the same time:
Looks good, I guess:
|
@fraenki Which of the solutions would you prefer? I'm swaying... Is there even a decent use-case for merging config values? |
While I think the knockout_prefix, especially the syntax in the example, is somewhat odd. I'd prefer it nonetheless, because it's the lesser evil (see below).
Yes. Actually If we decide to disable deep merging, then one needs to specify ALL required values for the |
As an alternative, we could switch to |
The root of all evil is the fact that I've put ALL poolmon config in a single hash |
Yes, but with |
I've settled with the |
Released as v2.0.0 due to this change being potentially breaking. |
This fixes two issues:
$dovecot::poolmon_config
, because deep merging was enabled.This was especially problematic for Poolmon's
check_port
configuration, because the default values may not work everywhere.I've disabling deep merging for the whole
$dovecot::poolmon_config
key. As a side effect it is now required to specify ALL options if one wants to customize any item in$dovecot::poolmon_config
.The following error would occur if either
check_ssl
orcheck_port
where not an array (or not set at all):