1
1
1nd1go2013-11-11 16:23:46
Chef
1nd1go, 2013-11-11 16:23:46

chef remote_file doesn't understand "file://" in source

Greetings!

There is a recipe for:

remote_file "test" do
  source "file:///vagrant/data/myfile.rpm"
  action :create
end

When it is executed, the following exception is obtained:
Connection refused - Connection refused connecting to : for /vagrant/data/myfile.rpm/file:///vagrant/data/myfile.rpm, giving up

I do not understand the strange construction of the URI that is being searched for. If I specify in sourcesimply "/vagrant/data/myfile.rpm", then it swears that the URI is in the wrong format, and in the dock to remote_file it is briefly said that it file://is accepted.

I use Chef 11.4.4, permissions to the file -rwxrwxrwx 1 vagrant vagrant, to directories up the tree drwxr-xr-x 1 vagrant vagrant.

What's wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question