sous-chefs / graphite

Development repository for the graphite cookbook
https://supermarket.chef.io/cookbooks/graphite
Apache License 2.0
154 stars 210 forks source link

Graphite cookbook failing due to runit::default #290

Closed ff-pjha closed 6 years ago

ff-pjha commented 6 years ago

Cookbook version

[1.0.4]

Chef-client version

[ 12.5.1]

Platform Details

[Amazon Linux]

Scenario:

[Basically I am installing graphite cookbook, it is dependent on runit cookbook, and its failing]

Steps to Reproduce:

[Run runit::default]

Expected Result:

[runit installed]

Actual Result:

[runit not installed]

=============================================================================== Recipe: runit::default

ff-pjha commented 6 years ago

Sorry for error indentation and readability. Basically the repo (imeyer_runit.repo) is not getting created inside yum.repos.d. Because of this the installation will not happen and the script of runit will not be created inside init.d. Please provide a solution for this.

ff-pjha commented 6 years ago

Confirmed from runit cookbook issues, in the latest version of runit the issue has been resolved. But in the graphite cookbook the version of runit is not updated. In metadata its ">=1.2", but during execution its picking 1.8 version of runit. And the current release version of runit is 3.0.6. There is no attribute to override the package version of runit. Please update it.

tas50 commented 6 years ago

In general we're moving away from Runit in this cookbook, but you can create a wrapper cookbook you can specify the pin version of that cookbook if you want to ensure you pull in the latest version.

ff-pjha commented 6 years ago

One thing I have a small question, in the metadata the cookbook version specified for runit is ">=1.2" . But whenever I converge it doesn't take the latest version of runit (3.0.6). It takes 1.0.8. Now you are saying to use a wrapper cookbook. So let me explain my architecture, I have my own cookbook in which I have made graphite as dependent inside metadata.rb and included the recipes. Now Graphite cookbook is dependent on runit, so how to override or disable it. I cannot specify the version of runit inside my metadata.rb, it is giving conflicts.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.