Webtrends/rundeck — pull request #11 by gsreynolds (2014-06-04 10:39:11+00:00)
Title: Support runit and upstart for chef-rundeck

IMHO using Upstart for chef-rundeck without maintaining compatibility for platforms without Upstart e.g. Debian is a short sighted move and would preclude such platforms from using future revisions of this cookbook without maintaining a fork. It is also a change that doesn't provide backwards-compatibility for previous versions of this cookbook.

I have added a chef_rundeck_use_upstart attribute with the default set by a conditional on platform = ubuntu and platform_family = rhel, given that those are the platforms that ship with Upstart.

I have also moved the log dir and log file creation to Chef resources instead of pre-start shell logic. I've also added logging to the Runit config as was added to the Upstart config.

Has been tested on Debian 7.4 and Ubuntu 12.04, converges as expected. I would also suggest that it's probably a good idea that the version of the cookbook is bumped a minor version if this PR is merged given the changes in this and previous commits to master.

Thanks! :smile: