Puppet Class: sys::ssh::known_hosts
- Inherits:
- sys::ssh::params
- Defined in:
- manifests/ssh/known_hosts.pp
Overview
Class: sys::ssh::known_hosts
This class creates the global SSH known hosts file and makes it world-readable, something the Puppet ‘sshkey` type doesn’t do.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'manifests/ssh/known_hosts.pp', line 6
class sys::ssh::known_hosts inherits sys::ssh::params {
include sys
# Have to ensure /etc/ssh exists as it doesn't exist on all
# platforms (like OS X).
file { $sys::ssh::params::etc_ssh:
ensure => directory,
owner => 'root',
group => $sys::root_group,
mode => '0644',
}
file { $sys::ssh::params::known_hosts:
ensure => file,
owner => 'root',
group => $sys::root_group,
mode => '0644',
}
}
|