I tried that. In my case, the user account is a domain account so this
is how my resource looks like
remote_file "Download Install File" do
source
"ftp://domain\\user: //install.exe"
path "C:\\Temp\\install.exe"
end
It does not like the value of source attribute. I also tried using
<mailto: >
format too but chef-client
resulted in same error.
Following is the error:
FATAL: Chef::Exceptions::InvalidRemoteFileURI: <URI> is not a valid
source parameter for remote_file. Source must be an absolute URI or an
array of URIs.
Thanks
-Kapil
*From:*Sölvi Páll Ásgeirsson
[mailto:
*Sent:* Tuesday, March 11, 2014 4:26 PM
*To:*
*Subject:* [chef] Re: remote_file resource for FTP with username and
password
Hi
It looks like it
(https://github.com/opscode/chef/blob/master/lib/chef/provider/remote_file/ftp.rb
and
https://github.com/opscode/chef/blob/master/lib/chef/provider/remote_file/content.rb)
Have you tried setting the uri to
"ftp://USER: "
?
Sölvi
On Tue, Mar 11, 2014 at 5:57 PM, Kapil Shardha
<
<mailto: >>
wrote:
All,
I checked the documentation for *remote_file* resource but could
not find if there is a way to define attributes for FTP username
and password. Any idea if that is supported?
Thanks
-Kapil
------------------------------------------------------------------------
This email and any accompanying documents may contain privileged
or otherwise confidential information of, and/or is the property
of Education Management Solutions, Inc. If you are not the
intended recipient, please immediately advise the sender by reply
email & delete the message & any attachments without using,
copying or disclosing the contents. Thank you.
------------------------------------------------------------------------
This email and any accompanying documents may contain privileged or
otherwise confidential information of, and/or is the property of
Education Management Solutions, Inc. If you are not the intended
recipient, please immediately advise the sender by reply email &
delete the message & any attachments without using, copying or
disclosing the contents. Thank you.
Archive powered by MHonArc 2.6.16.