-
-
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
How can I install elastic 5.0 rc with this cookbook? #500
Comments
Looks like it isn't downloading it at all. I'm not even sure this cookbook will work with 5.0 yet but if you want to try then what you can do is download the rpm and put it in your cookbook files/default folder. Do a cookbook_file to place it into temp and then install from there. I have to do this as my servers do not have internet access. Again... not sure if this cookbook even works for 5.0rc1 or if what I paste below isn't error free but here is an example of what I do if you want to see if you can get it to work. cookbook_file '/tmp/elastic.rpm' do
source "elasticsearch-#{VERSION}.rpm"
end
elasticsearch_install 'install_es' do
type :package
download_url "file:///tmp/elastic.rpm"
download_checksum CHECKSUM
end
` |
Ok so I overwrote the URL attributes to point directly to the rpm (looks like there isn't a dev repo or anything where the RC is hosted):
But the checksum isn't working. If I go here (https://www.elastic.co/downloads/elasticsearch) and download the checksum for 5 RC rpm package and then plug that in to this attribute: I get this error: |
Hi there -- Chef uses sha256 checksums; last I looked, Elastic wasn't posting sha256 checksums. Every time we add additional checksums, we've had to download the files and re-sum them so that we can use the builtin Chef resources (they all rely on sha256). That's probably the issue you're seeing with checksums. Regarding the 5.0.0-rc1, if they've changed the URL pattern for releases, that's likely part of the issue. As you've noticed, you can always force a particular URL. |
Confirmed -- it looks like they've changed the URLs again; compare:
|
Hi there -- it looks like you've got things deployed, albeit no thanks to the cookbook :) I've opened https://github.com/elastic/cookbook-elasticsearch/milestone/7, as we're likely to make some other breaking changes with the addition of support for ES 5.x. If you encounter other compatibility issues, I'd like to track them against #503, if possible. |
I added this to the attributes file:
default['elasticsearch']['checksums']['5.0.0-rc1']['rhel'] = '702fb2c36301514f8e8bd991ce6fa5e9c48bcc9a'
default['elasticsearch']['version'] = '5.0.0-rc1'
But I get this error:
[2016-10-11T14:29:55-04:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
The text was updated successfully, but these errors were encountered: