header = "blablabla"current = "https://s3.amazonaws.com/package.rpm"
http_request "get_package" doheaders({"Referer" => "#{header}"})url "#{current}"end
Hi guys,
Can you please provide me with the example on how to use headers attribute
within remote_file Chef recipe?
Here what I have and it doesn't seem to work:
remote_file "c:\test_chef.txt" do
source "file:////prodstore/Shares/Engineering/test_chef.txt"
headers({"Cookies" => "user=kasjdhfak; pass=sdkjhf" })
end
What I basically need is to make chef-client (windows platform) to pull data
from Windows shared repository. In order to not save all data on Chef server.
Issue I met is that windows shared repo uses authentication and I need ability
to provide user/pass for getting anything from that source.
If you happene to know how to pull files using Chef resources from Amazon S3
storage as well it would be nice if you vould share that knowledge as well.
Thank you a lot in advance.
Much appreciated.
Regards,
Taras.
Archive powered by MHonArc 2.6.16.