[chef] Chef attributes will not work


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] Chef attributes will not work
  • Date: Sun, 28 Dec 2014 22:13:25 +0700

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:



  • [chef] Chef attributes will not work, David Montgomery, 12/28/2014

Archive powered by MHonArc 2.6.16.

§