Set Key server using an attribute to resolve installation failure on … #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Installation on Ubuntu 16.04 fails with error shown below. The apt key has been updated for Ubuntu 16.04 and Debian 8 (see https://www.virtualbox.org/wiki/Linux_Downloads). I updated the default recipe to use an attribute for the apt_repository key. In the default attributes file I've set the key to the appropriate value if the platform_version is Ubuntu 16.04 but I could have just left this as an attribute for anyone to override (I wasn't sure of the best approach as I'm not an expert on Chef).
I updated the chef spec test for the default recipe. I also had to amend spec/spec_helper.rb to avoid a NoMethodError on color_enabled. I assume this is because I'm using a newer version of chefspec (I'm using chefdk 0.16.28), hope that's OK.