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/
> msgid/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%2B3OxrECDMxtAmqz3QdrAysXjuT%2BxAk99ZHTT78Sni6y24QA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.