sensu / sensu-chef

Sensu Chef cookbook.
https://supermarket.chef.io/cookbooks/sensu
Apache License 2.0
222 stars 280 forks source link

Yum repo configuration should be made more flexible to support RHEL-derivatives #563

Closed cwjohnston closed 7 years ago

cwjohnston commented 7 years ago

Expected Behavior

As a user of a RHEL-derivative platform, e.g. SuSE or Amazon Linux, I should be able to install the official Sensu packages for RHEL.

Current Behavior

The _linux recipe currently configures yum repositories with a baseurl value that includes the $releasever variable in a way that can't be overriden. On RHEL-derivative platforms the value of $releasever does not align with the major versions of RHEL, e.g. 6 or 7, making it impossible to retrieve packages from the official repository using this cookbook.

Possible Solution

Implement an attribute similar to apt_repo_codename which can be used to override $releasever in the value of yum repository baseurl parameter.

Steps to Reproduce (for bugs)

  1. Attempt to use default recipe on Amazon Linux or SuSE

Context

Relates to #560

Your Environment