oops ... I was wrong about that. It does define a resource. my bad On Wed, Jun 7, 2017 at 3:28 PM, Red Cricket <[email protected]> wrote:
> I took a look at https://github.com/xaque208/puppet-ssh/blob/ > master/manifests/server/subsystem.pp > There is no subsystem resource defined ... just this: > > # 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'), > } > } > > > > Looks like all you would need to do is this in your hiera: > > ssh::server::subsystem::system: '/usr/libexec/sftp-server' > > And then just do ... > > include ssh::server::subsystem > > ... in your manifest. > > > On Thu, Jun 1, 2017 at 2:19 PM, Peter K <[email protected]> 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/ms >> gid/puppet-users/5f4b39eb-bb3b-40d8-91a4-82f16931e53a%40googlegroups.com >> <https://groups.google.com/d/msgid/puppet-users/5f4b39eb-bb3b-40d8-91a4-82f16931e53a%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/CAHu%2B3Owyb9o7hm9_5hFwY0vwRacuLW0Lo-yA9FxqOCb0KsPZ1Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
