Peter K:

What version of the module are you using? On the forge is 1.1.0

If that is the case you will need to include ::ssh::server (You can do this 
using roles and profiles)
This link to Gary Larizza will help you understand what they are and how to 
do them - http://garylarizza.com/blog/2014/02/17/puppet-workflow-part-2/

You will then need a way to do a create resource on the define class 
ssh::server::subsystem

class peters_class (
  $ssh_subsystem = {}
) {
  create_resource('ssh::server::subsystem', $ssh_subsytem);
}

Then in Hiera

peters_class::ssh_subsystem:
  'sftp':
    'system': '/usr/libexec/sftp-server'

Hope this Helps
Joey

On Thursday, June 1, 2017 at 5:19:59 PM UTC-4, Peter K wrote:
>
> Hi all, I'm using the zleslie-ssh <https://forge.puppet.com/zleslie/ssh> 
> module and trying to configure it with hiera.
> I have all the lines working but this one (this is the output I"m seeking):
>
> Subsystem  sftp    /usr/libexec/sftp-server
>
> Here is successfully working code that is non-hiera:
>
> include ssh::service
>
> ssh::server::subsystem { 'sftp':
> system => '/usr/libexec/sftp-server'
>  }
>
> Here is my best guest to how it should be defined with hiera (but it 
> doesn't create anything):
>
> ssh::server::subsystem::sftp:
>   - system: '/usr/libexec/sftp-server'
>
> Thoughts?
> thx
> -peter
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/41b94c51-1077-4edf-a8d2-d558f6fc3408%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to