If you're trying to use data binding, then it would be:

ssh::server::subsystem::system: '/usr/libexec/sftp-server'

That does, however, have problems if you have multiple instantiations of ssh::server::subsystem on a single node with different values, and you'd need to define your own hierarchy and explicitly use hiera lookups in your manifest in that case.


On 2017-06-01 05:19 PM, 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] <mailto:[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/798fafa9-3201-aa83-1420-9715f046177a%40alter3d.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to