使用elastica/cookbook-elasticsearch来安装Elasticsearch1.7.1
弹性/烹饪书-弹性搜索
elasticsearch_install 'my_es_installation' do
type :package # type of install
version "1.7.1"
package_url "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.1.deb"
package_checksum "5832808f2a4c77de5af225db11da00138d9ea07a17f7b9212f4d2aac5317169d"
action :install # could be :remove as well
end
不使用SHA1,而是使用SHA256来生成校验和的讨论。
对于Mac而言
$ shasum -a 256 ~/Downloads/elasticsearch-1.7.1.deb
我们来以类似的方式生成一下吧。