-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
Unable to change elasticsearch version via role and version tag #61
Comments
@jsirex That's bad... I know Chef 11 changed how attributes are handled and evaluated, what Chef version this is? |
I'm using Chef 10.x. At chef wiki. |
There's something weird in your case, since attributes set in |
In role file I put:
On Chefs' side (isn't it? I'm not sure):
About attributes I've read here: http://wiki.opscode.com/display/chef/Attributes |
Have a look at what file is Chef trying to download -- it's in the output. Raise the level to Actually, the Chef 11 changelog states that the behaviour should work as you expect here, ie. correctly compose the |
@jsirex Any new info here? I'm able to upgrade/downgrade the version just fine, the only problem is that the service isn't restarted. My steps: $EDITOR Vagrantfile # Change version to 0.19.0
time CHEF=latest bundle exec vagrant provision precise64
...
DEBUG: Streaming download from http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.19.0.tar.gz to tempfile /tmp/chef...
INFO: Processing directory[/usr/local/elasticsearch-0.19.0] action create (dynamically defined)
...
time CHEF=latest bundle exec vagrant ssh precise64 -c 'ls -la /usr/local/elasticsearch'
lrwxrwxrwx 1 root root 31 Feb 26 12:57 /usr/local/elasticsearch -> /usr/local/elasticsearch-0.19.0 Please try this out with latest versions of either Chef 10.x or 11.x and post relevant parts of the Chef run output (increase level to DEBUG). |
As a side note, the cookbook now installs the
When you run Chef with:
you'll get an interactive console where you can check and manipulate node attributes etc. |
@karmi, thanks. Looks like I have to upgrade Chef to 11.x. |
@jsirex It works on 10.24.0 just fine |
If you try to change elastic search via:
only :version will have been changed, because chef first evaluates all default attributes:
Your code:
download url, filename, stays untouched.
The text was updated successfully, but these errors were encountered: