sous-chefs / jenkins

Development repository for the jenkins cookbook
https://supermarket.chef.io/cookbooks/jenkins
Apache License 2.0
424 stars 635 forks source link

Option to restart jenkins when openjdk package is updated #678

Closed iancward closed 4 years ago

iancward commented 6 years ago

Cookbook version

v5.0.3

Chef-client version

12.14.89

Platform Details

RHEL6

Scenario:

I'm using both the java and master recipe (with package installation method). If the java/openjdk package is updated, jenkins doesn't really handle it well.

Steps to Reproduce:

Expected Result:

Actual Result:

Proposed Solution

I think if the conditionals here were moved inside of the resource, it would be relatively straightforward to set up a subscribes from the master role that bumps the jenkins service if the package is updated.

bby-bishopclark commented 6 years ago

If you're installing Jenkins and OpenJDK from packages, your best bet is probably a trigger package to cause that update in response to the new OpenJDK installation. Then you're covered no matter how that update happens.

github-actions[bot] commented 4 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] commented 4 years ago

Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.