Subsystem sftp /usr/libexec/sftp-server
include ssh::service
ssh::server::subsystem { 'sftp':
system => '/usr/libexec/sftp-server'
}
ssh::server::subsystem::sftp:
- system: '/usr/libexec/sftp-server'
If you're trying to use data binding, then it would be:
ssh::server::subsystem::system: '/usr/libexec/sftp-server'
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5f4b39eb-bb3b-40d8-91a4-82f16931e53a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# Define: ssh::server::subsystem # # Add an ssh subsystem to sshd_config(5) # # Examples: # # ssh::server::subsystem { 'sftp': # system => 'internal-sftp' # } # define ssh::server::subsystem ( $system, ) { include ::ssh include ::ssh::server concat::fragment { "sshd_config-subsystem-${name}": target => $ssh::sshd_config, content => template('ssh/sshd_config-subsystem.erb'), } }
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
class peters_class (
$ssh_subsystem = {}
) {
create_resource('ssh::server::subsystem', $ssh_subsytem);
}
peters_class::ssh_subsystem:
'sftp':
'system': '/usr/libexec/sftp-server'
Hope this Helps