-
Notifications
You must be signed in to change notification settings - Fork 289
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
Unable to purge handlers, extensions, or mutators #328
Comments
Ping: @jlambert121 do you have a preference for an approach to re-add this functionality? In my setup all handlers/extensions/mutators are managed by puppet, and I need unmanaged handlers/extensions/mutators to be purged. I'd like to know your preference before submitting another PR. |
I was looking at this last week and I hate to have a ton of different parameters that all change slightly different things. Just as a point of discussion, what about a purge hash?
Do you think that's getting too confusing for people? It would be nice to confine the parameter creep though. |
I suspect most people would want to purge everything so I'm not sure how much value there is in fine grain control. |
My original PR for this was a single "purge everything" flag, and that was reverted because in #304 somebody didn't want to purge everything. I think that a hash would be doable, and avoid adding tons of new parameters. Do you reckon the existing parameters should be removed, fail if they're specified, or continue to work to retain backwards compatibility? For prior art, I see that the |
Re: wanting to purge everything, we could make
People who wanted to purge nothing could use the default (or
|
…` and `purge_plugins` The `purge` parameter can either be `true`/`false` (in which case it controls purging everything), or a hash controlling each type of purge-able thing. Fixes sensu#328
Raised #401 with an implementation which accepts booleans or a hash, and fails if you pass I made another branch which just warns when |
Nice! I like #401. It adds a little bit of complexity, but the code is easy to read and most of it is hidden from the average user. Unless anyone has a different implementation idea in the near future I'm going to merge this one. |
Since #302 was reverted in #307, #321 has been merged which supposedly re-added this functionality. However the following directories are not purged with this new implementation:
/etc/sensu/handlers
,/etc/sensu/extensions
,/etc/sensu/mutators
,/etc/sensu/extensions/handlers
I'm willing to go and create another PR to re-add this functionality, but before I do I'd like to know your preferred approach. Would you like the new parameter
purge_plugins_dir
to purge these additional directories (possibly also renaming the parameter), or would you like 4 additional parameters to purge these 4 directories? Or something in between?The text was updated successfully, but these errors were encountered: