base.pp 344 B

123456789101112131415
  1. class sshd::client::base {
  2. # this is needed because the gid might have changed
  3. file { '/etc/ssh/ssh_known_hosts':
  4. ensure => present,
  5. mode => '0644',
  6. owner => root,
  7. group => 0;
  8. }
  9. # Now collect all server keys
  10. case $sshd::client::shared_ip {
  11. no: { Sshkey <<||>> }
  12. yes: { Sshkey <<| tag == fqdn |>> }
  13. }
  14. }