El 01/06/17 a las 23:19, Peter K escribió:
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'
|
Depend on how you are invoking ssh::server::subsystem define. For
example, if you are using roles&profile, you could define in hiera like:
profile::ssh::server::subsystem::
sftp:
system: '/usr/libexec/sftp-server'
And then:
class profile::ssh::server (
$subsytem = {},
) {
$subsystem.each |$n, $o| {
ssh::server::subsystem {$n:
* => $o,
}
}
}
that invokes all the subsystems defined in hiera.
--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868889150
Fax: 868888337
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/19afee61-7796-adea-dc37-ecedc4e2e3b7%40um.es.
For more options, visit https://groups.google.com/d/optout.