4c5df22e5d
Updated ssh module to fix sftp subsystem bug in CenOS Upstream version: 2.4.0 Upstream SHA: e5cfeae06a16497382072d80c65c901aa0e696ea Change-Id: I7f72aab77d982a3e47618a82f7dda9312c8699b9 Closes-bug: #1415078
27 lines
632 B
Puppet
27 lines
632 B
Puppet
class ssh::hostkeys {
|
|
$ipaddresses = ipaddresses()
|
|
$host_aliases = flatten([ $::fqdn, $::hostname, $ipaddresses ])
|
|
|
|
if $::sshdsakey {
|
|
@@sshkey { "${::fqdn}_dsa":
|
|
host_aliases => $host_aliases,
|
|
type => dsa,
|
|
key => $::sshdsakey,
|
|
}
|
|
}
|
|
if $::sshrsakey {
|
|
@@sshkey { "${::fqdn}_rsa":
|
|
host_aliases => $host_aliases,
|
|
type => rsa,
|
|
key => $::sshrsakey,
|
|
}
|
|
}
|
|
if $::sshecdsakey {
|
|
@@sshkey { "${::fqdn}_ecdsa":
|
|
host_aliases => $host_aliases,
|
|
type => 'ecdsa-sha2-nistp256',
|
|
key => $::sshecdsakey,
|
|
}
|
|
}
|
|
}
|