Closed djcoster closed 3 years ago
@djcoster I'm a little confused by your issue. The version of the cookbook you mention requires you use Chef 15 or greater. Chef 14 and below will not work properly with this cookbook. Can you please clarify?
@ramereth, It appears that I created this issue on the wrong cookbook. It was supposed to be placed on the unifi
cookbook that references this one in the metadata. Sorry for the confusion.
:speaking_head: Foreword
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
:ghost: Brief Description
Claims requirement of "Chef 15+" but trying to call this gives the error in subject.
:pancakes: Cookbook version
2.0.0
:woman_cook: Chef-Infra Version
14.15.6
:tophat: Platform details
Ubuntu 20.04
Steps To Reproduce
chef-client
in /var/chef/cache/chef-stacktrace.out:police_car: Expected behavior
No error should be produced.
:heavy_plus_sign: Additional context
The README mentions that Java version 8 is required, but putting
depends java
in the metadata.rb makes it use the most recent and produces this error, since I did not use that cookbook to install the JDK. The best thing would be to remove this dependancy. This doesn't even check if java is installed on the machine and just causes the error mentioned.I got around this by putting a
depends 'java', '~> 8.0.0'
in my metadata.rb file to lock the version to one that accepts my version ofchef-client
.