summaryrefslogtreecommitdiff
path: root/puppet/modules/sshd/manifests/client/base.pp
blob: 4925c2d07ca61178528b71f30b80638e803a7395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class sshd::client::base {
  # this is needed because the gid might have changed
  file { '/etc/ssh/ssh_known_hosts':
    ensure => present,
    mode   => '0644',
    owner  => root,
    group  => 0;
  }

  # Now collect all server keys
  case $sshd::client::shared_ip {
    no:  { Sshkey <<||>> }
    yes: { Sshkey <<| tag == fqdn |>> }
  }
}