[chef] Using remote_file issue with file://


Chronological Thread 
  • From: Kiril Ilyev < >
  • To:
  • Subject: [chef] Using remote_file issue with file://
  • Date: Fri, 17 Jul 2015 18:48:48 +0200

Dear all, 

the following snippet doesn't seem to work properly:

default[:aem][:download_url] = 'file:///my/path/to/my/file.jar'

  remote_jar_name = "aem-quickstart-#{node[:aem][:version]}.jar"
  remote_file "#{Chef::Config[:file_cache_path]}/#{remote_jar_name}" do
    source "#{vars[:download_url]}"
    mode "0755"
    action :create_if_missing
  end

Can you please advice.

Moreover when I use a http://adress behind an authenticated form I can't find the way to provide the username password. This issue https://tickets.opscode.com/browse/CHEF-3786 seems to provide this functionality but I can't find how to use it.

Thanks in advance,
Kiril



Archive powered by MHonArc 2.6.16.

§