diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:22 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:22 -0400 |
commit | 8166111831b79d426964440cd355d57ee33878f7 (patch) | |
tree | c51b0abbc9f5136c6ad8439a1423dfb88f61a0a2 /puppet/modules/sshd/manifests/client/base.pp | |
parent | 991f91c5cd53524b09d2d880569178cb455392f1 (diff) | |
parent | 823e83dfb47af1d023f5e4ca46078bbc4df72006 (diff) |
Merge commit '823e83dfb47af1d023f5e4ca46078bbc4df72006' as 'puppet/modules/sshd'
Diffstat (limited to 'puppet/modules/sshd/manifests/client/base.pp')
-rw-r--r-- | puppet/modules/sshd/manifests/client/base.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/puppet/modules/sshd/manifests/client/base.pp b/puppet/modules/sshd/manifests/client/base.pp new file mode 100644 index 00000000..4925c2d0 --- /dev/null +++ b/puppet/modules/sshd/manifests/client/base.pp @@ -0,0 +1,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 |>> } + } +} |