2009-09-29 19:53:04 +02:00
|
|
|
class sshd::client::base {
|
2009-12-10 23:15:07 +01:00
|
|
|
# this is needed because the gid might have changed
|
2012-06-05 23:23:03 +02:00
|
|
|
file { '/etc/ssh/ssh_known_hosts':
|
2014-01-26 11:33:41 +01:00
|
|
|
ensure => present,
|
|
|
|
mode => '0644',
|
|
|
|
owner => root,
|
|
|
|
group => 0;
|
2009-12-10 23:15:07 +01:00
|
|
|
}
|
2009-09-29 19:53:04 +02:00
|
|
|
|
2009-12-10 23:15:07 +01:00
|
|
|
# Now collect all server keys
|
2012-06-05 23:23:03 +02:00
|
|
|
case $sshd::client::shared_ip {
|
2009-12-27 17:23:51 +01:00
|
|
|
no: { Sshkey <<||>> }
|
2013-02-03 00:30:54 +01:00
|
|
|
yes: { Sshkey <<| tag == fqdn |>> }
|
2009-12-27 17:23:51 +01:00
|
|
|
}
|
2009-09-29 19:53:04 +02:00
|
|
|
}
|