[chef] Re: Chef attributes will not work


Chronological Thread 
  • From: Tensibai Zhaoying < >
  • To: David Montgomery < >
  • Cc:
  • Subject: [chef] Re: Chef attributes will not work
  • Date: Sun, 28 Dec 2014 17:05:39 +0100

Is the version = before the remote file resource ? If yes I've no idea, if it's from a wrapper cookbook, is it before the include_recipe ?

Your extract from the recipe code and your description is really not enough to get an idea of where could the problem be.

Le 28 déc. 2014 16:13, David Montgomery < > a écrit :
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:




Archive powered by MHonArc 2.6.16.

§