This cookbook supplies a provider for the remote_file resource that uses SFTP (driven by the net-sftp gem).
include the default recipe to handle the gem dependencies or include the following in your recipe"
chef_gem 'net-sftp' do
action :install
compile_time true
end
net-sftp
- sftp_provider is driven by the net-sftp gem.
None necessary
Include this cookbook as a dependency and utilize the provider.
e.g.
include_recipe 'sftp_provider::default'
remote_file "c:/tmp.txt" do
source "sftp://username:password@host/path/from/root/to/file/on/sftp/server"
provider Chef::Provider::File::SFTPRemoteFile
end
Pull requests are accepted. This plugin is currently under initial development and any help is appreciated.
Authors:
- John Kerry
Apache 2.0 License