ECHOInternational / chef-solr_6

Chef cookbook that installs and configures Solr 6
MIT License
1 stars 6 forks source link

Local tarball does not reflect version #2

Open cbowers-icfi opened 6 years ago

cbowers-icfi commented 6 years ago

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!

npflood commented 6 years ago

Hey @cbowers-icfi I'd love to see a pull request on this!