Hello Julien,
This wroked well thanks a lot.
However I am still having an issue when prefixing with file:/// instead of an http.
See my error below:
I am using chef version:
09:06 $ chef --v
Chef Development Kit Version: 0.6.2
chef-client version: 12.3.0
berks version: 3.2.4
kitchen version: 1.4.0
If i put this in my browser : file:///home/kiril/Documents/cq5.6-adv-dev-usb-2013-02-21/Distribution/CQ5/license.properties I get the file i need. So i cannot understand why chef doesn't reach it. The documentation says that file http & https are supported.
Thanks in advance,
Kiril
==> default: Error executing action `create` on resource 'remote_file[/opt/aem/author/license.properties]'
==> default: ================================================================================
==> default:
==> default: Errno::ENOENT
==> default: -------------
==> default: No such file or directory @ rb_sysopen - /home/kiril/Documents/cq5.6-adv-dev-usb-2013-02-21/Distribution/CQ5/license.properties
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef/ee0f6fb5916f969b009ab9295c2cdc88/cookbooks/aem/recipes/author.rb
==> default:
==> default: 31: remote_file "#{node[:aem][:author][:default_context]}/license.properties" do
==> default: 32: source "#{node[:aem][:license_url]}"
==> default: 33: mode 0644
==> default: 34: end
==> default: 35: end
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef/ee0f6fb5916f969b009ab9295c2cdc88/cookbooks/aem/recipes/author.rb:31:in `from_file'
==> default:
==> default: remote_file("/opt/aem/author/license.properties") do
==> default: provider Chef::Provider::RemoteFile
==> default: action [:create]
==> default: retries 0
==> default: retry_delay 2
==> default: default_guard_interpreter :default
==> default: path "/opt/aem/author/license.properties"
==> default: backup 5
==> default: atomic_update true
==> default: source ["file:///home/kiril/Documents/cq5.6-adv-dev-usb-2013-02-21/Distribution/CQ5/license.properties"]
==> default: use_etag true
==> default: use_last_modified true
==> default: declared_type :remote_file
==> default: cookbook_name :aem
==> default: recipe_name "author"
==> default: mode 420
==> default: end
==> default:
==> default: [2015-07-20T07:12:22+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default:
==> default: Running handlers:
==> default: [2015-07-20T07:12:22+00:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default: [2015-07-20T07:12:22+00:00] ERROR: Exception handlers complete
==> default: Chef Client failed. 3 resources updated in 358.642107798 seconds
==> default: [2015-07-20T07:12:22+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2015-07-20T07:12:22+00:00] ERROR: remote_file[/opt/aem/author/license.properties] (aem::author line 31) had an error: Errno::ENOENT: No such file or directory @ rb_sysopen - /home/kiril/Documents/cq5.6-adv-dev-usb-2013-02-21/Distribution/CQ5/license.properties
==> default: [2015-07-20T07:12:22+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)