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.
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 onwily
andyakkety
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: