fuel-library/deployment/puppet/ssh/manifests/hostkeys.pp
Tomasz 'Zen' Napierala 4c5df22e5d Updated ssh module
Updated ssh module to fix sftp subsystem bug in CenOS

Upstream version: 2.4.0
Upstream SHA: e5cfeae06a16497382072d80c65c901aa0e696ea

Change-Id: I7f72aab77d982a3e47618a82f7dda9312c8699b9
Closes-bug: #1415078
2015-01-28 11:43:38 +01:00

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,
}
}
}