evertrue / exhibitor-cookbook

Cookbook for Netflix Exhibitor
Other
16 stars 27 forks source link

enabling service start on variable #21

Closed yazgoo closed 9 years ago

yazgoo commented 9 years ago

Some might want to have the service added but not started. If so, i suggest passing the attribute :no_start, like this:

  attribute :exhibitor, { no_start: true }

The service will be enabled but not started. This does not change default behavior, which keeps on starting the service. What do you think ?

yazgoo commented 9 years ago

Also, the package providing "patch" command might not be called "patch". For example on ubuntu this is called "diffutils", which could be overriden this way:

attribute [:exhibitor, :patch_package], "diffutils"
jeffbyrnes commented 9 years ago

@yazgoo thanks so much for the contribution! And this is a great idea; I’ve seen/done this in other cookbooks. One comment for you to chew on.

jakedavis commented 9 years ago

Yassss, I actually am surprised this isn't in there already. +100 to not auto-starting stuff.