-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use node kibana version attribute in download url #5
Comments
This change leads to bug when using wrapper cookbook. It is really bad idea to calculate attributes in such way, isn't? |
@jsirex it should not be and i think if we modify the |
if wrapper cookbook set a different download location, then its up to the user whether the user wants to use version attribute or not. |
There is branch I've overrode version in wrapper cookbook (simple-kibana-test) to rspec spec/version_spec.rb
simple-kibana-test::default
[2015-06-08T14:06:32+03:00] WARN: version now: 4.0.2
expect calculated version right |
If you need some explanations: You code literally means: default['kibana']['version'] = '4.0.2'
default['kibana']['download_url'] = "https://download.elasticsearch.org/kibana/kibana/kibana-#{node['kibana']['version']}-linux-x64.tar.gz"
default['kibana']['version'] = '5.5.5' So it will be impossible to override url in wrapper cookbook. But, looks like if you set node attributes explicitly via node object/environment/role with higher precedence it will work for you. May be these attributes loads right before cookbooks attributes evaluations. Not sure |
@jsirex i think precedence for node/environment/role is the expected flow to override default. i have not seen any issue with that. but it may be just me, i try to ignore updating default attribute in wrapper cookbook especially when other attributes are evaluated by them. but i could be wrong, it is really comes down to how the precedence is followed in different scenarios. |
Similar issue faced long time ago in elasticsearch cookbook: sous-chefs/elasticsearch#178 So, I close it. |
kibana download_url must use node kibana version attribute
The text was updated successfully, but these errors were encountered: