Wowee
attributes/default.rb
default[:elasticsearch][:version] = “1.4.2”
recipe
version = node[:elasticsearch][:version]
OMG…my error…why? How do a variable sub?
https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-.deb
- remote_file[/var/chef/cache/elasticsearch-.deb] action
create_if_missing[2014-12-28T15:08:43+00:00] WARN:
remote_file[/var/chef/cache/elasticsearch-.deb] cannot be downloaded from
https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-.deb:
404 “Not Found”
================================================================================
Error executing action create_if_missing
on resource
’remote_file[/var/chef/cache/elasticsearch-.deb]’
================================================================================
Net::HTTPServerException
------------------------
404 "Not Found"
Resource Declaration:
---------------------
# In
/var/etl-chef/chef-repo/site-cookbooks/elasticsearch/recipes/default.rb
49: remote_file
“#{Chef::Config[:file_cache_path]}/elasticsearch-#{version}.deb” do
50: source "
https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-#{version}.deb
"
51: action :create_if_missing
52: end
53: