When I override version number with the latest, 6.6.0, the tarball is still named /var/chef/cache/solr-6.0.1.tgz. When the install script is trying to be extracted it is failing, because it cannot find the script with error "tar: solr-6.6.0/bin/install_solr_service.sh: Not found in archive"
This is happening because when wrapping this cookbook, the ['solr']['version'] and ['solr']['url'] attribute are loaded first from this cookbook, then when the attributes in my cookbook are loaded, the new version is set, but the value within the ['solr']['url'] attribute is not re-set. As a work around, I had to include the ['solr']['url'] in my attributes file as well. Same value, no changes.
The download URL should be calculated at compile time, after the attributes have been loaded.
When I override version number with the latest, 6.6.0, the tarball is still named /var/chef/cache/solr-6.0.1.tgz. When the install script is trying to be extracted it is failing, because it cannot find the script with error "tar: solr-6.6.0/bin/install_solr_service.sh: Not found in archive"
This is happening because when wrapping this cookbook, the ['solr']['version'] and ['solr']['url'] attribute are loaded first from this cookbook, then when the attributes in my cookbook are loaded, the new version is set, but the value within the ['solr']['url'] attribute is not re-set. As a work around, I had to include the ['solr']['url'] in my attributes file as well. Same value, no changes.
The download URL should be calculated at compile time, after the attributes have been loaded.
Cheers!