Puppet Class: ssh::known_hosts::storeconfig

Defined in:
manifests/known_hosts/storeconfig.pp

Overview

Class: ssh::known_hosts::storeconfig

Manages a global known_hosts file (based on storeconfig)



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/known_hosts/storeconfig.pp', line 5

class ssh::known_hosts::storeconfig {
        # Export our own ssh key
        @@sshkey { $::hostname:
            host_aliases => [$::fqdn, $::ipaddress],
            type         => rsa,
            key          => $::sshrsakey
        }

        Sshkey <<| |>>
        
        # WORKAROUND FOR http://projects.reductivelabs.com/issues/2014
        # ssh_known_hosts file is created with wrong permissions
        file { '/etc/ssh/ssh_known_hosts':
            mode => '0644'
        }
}