-
Notifications
You must be signed in to change notification settings - Fork 7
Add additional supervisorctl commands as actions #2
base: master
Are you sure you want to change the base?
Conversation
The addition of the I like the additional functionality to the service, but I'm working with this cookbook under the impression that the supervisor_service resource's actions are modeled after traditional chef service resources. Getting those typical effects requires some translation between the supervisorctl commands and the traditional chef service resource verbs. Also, now that I'm both reading the supervisorctl docs and referencing another github issue about how unclear these verbs are, I can see that even my patch wasn't quite right. I suggest the following for
Other actions can be aliased to these or can be more specific (such as an actual |
Thanks for taking a look at this. I chose supervisor command names just to make it easier to understand from a supervisorctl perspective, but having some of the standard Chef actions would be ideal. I'll work on morphing those changes into the branch tomorrow. Feel free to add unit tests to this branch. |
@RulerOf I updated the What are your thoughts on the notifies action sent by the other resources? |
That makes sense.
I started preparing a PR over the weekend which you'll be able to merge into this one that contains some minimal unit testing and a few minor changes to the notifications to get the integration tests passing again. I started refactoring portions of the code base to make the unit tests possible (chefspec has some limits) and realized I should probably save those for a different PR altogether. I'll take some time out of my evening tomorrow to get the changes submitted here. |
Having a working supervisor cookbook that supports newer Chef releases was my motivation for this work. Feels closer than ever now! Thanks for your help / suggestions so far |
Any update on this guys? we'll love to have a supervisor cookbook replacement also. |
This is still on my list of things I'm perpetually procrastinating on. I did some of the work back in April but still haven't finished it. |
I'm working to replace the poise supervisor cookbook with yours. Needed a couple tweaks to make that happen, but it's looking great so far!
Changes
supervisor_process
supervisor_service
Not sure what spec or test updates would be needed for these changes, so I'm happy for guidance on that