sensu / sensu-chef

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

Add attribute for overriding lsb codename in apt repo configuration #555

Closed cwjohnston closed 7 years ago

cwjohnston commented 7 years ago

Description

Adds an attribute for overriding the "codename" automatically detected by Ohai. This attribute allows the use of Sensu packages built for Ubuntu LTS releases to be used on non-LTS releases, e.g. xenial packages can be installed on wily and yakkety systems.

Also upgrades ChefSpec from ~> 4.0 to ~> 6.0, as was expedient to fix a bug with regard to add_apt_repository assertions.

Motivation and Context

Solves problem described in https://github.com/sensu/sensu-omnibus/issues/162

How Has This Been Tested?

Added unit tests, tested functionality in local test-kitchen with a yakkety (16.10) VM.

Types of changes

Checklist:

cwjohnston commented 7 years ago

cc @julian7 hoped this feature would help with your use case. Any thoughts?

julian7 commented 7 years ago

Sounds good. Thanks for having that feature added.