Skip to content

A provider for the chef remote_file resource that supports sftp using the net-sftp gem.

License

Notifications You must be signed in to change notification settings

jkerry/sftp_provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sftp_provider Cookbook

This cookbook supplies a provider for the remote_file resource that uses SFTP (driven by the net-sftp gem).

Requirements

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

packages

  • net-sftp - sftp_provider is driven by the net-sftp gem.

Attributes

None necessary

Usage

sftp_provider::default

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

Contributing

Pull requests are accepted. This plugin is currently under initial development and any help is appreciated.

License and Authors

Authors:

  • John Kerry

Apache 2.0 License

About

A provider for the chef remote_file resource that supports sftp using the net-sftp gem.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages