chef-boneyard / push-jobs-cookbook

Development repository for Chef Cookbook push-jobs
https://supermarket.chef.io/cookbooks/push-jobs
Apache License 2.0
21 stars 43 forks source link

Support for multiple service providers via custom resources #87

Closed tas50 closed 8 years ago

tas50 commented 8 years ago

Description

Support for non-runit service providers via 12.5 custom resources. This is a bit of a breaking change with backwards compatibility sprinkled on where it could be. First the cookbook will require Chef 12 since it uses 12.5 custom resources. Second the "container" service option has been removed. Third the attribute for controlling the service type has changed a bit. Instead of specifying what init system you want via attribute you'll only use that attribute to force Runit. Otherwise the correct thing will just happen automatically.There are now three new resources to install the service that use the provides logic to run where appropriate. The service recipe uses either the windows service recipe or these providers to install under Runit, Upstart, or Systemd. Out of the box now a user will get the init system natively supported by their distro instead of being forced onto runit. The providers can also be used in wrapper cookbooks to further customize things.

Final breaking change: The previous runit service name was opscode-push-client. It's now chef-push-client and the old service will be stopped/disabled and cleaned up before installing the new one.

Issues Resolved

34

Check List