110754ef24
The sshd_config file that we put everywhere has an invalid value for where the sftp command is. On RedHat, it's in /usr/libexec - which means that it is not possible to use SFTP to interact with our CentOS machines. Replace the static file with a template so that we can substitute the correct value based on which distro it is. Change-Id: Ia9ba88199f4ff024a904431821926dbb26f35ad6
22 lines
501 B
Puppet
22 lines
501 B
Puppet
# == Class: ssh
|
|
#
|
|
class ssh {
|
|
include ssh::params
|
|
package { $::ssh::params::package_name:
|
|
ensure => present,
|
|
}
|
|
service { $::ssh::params::service_name:
|
|
ensure => running,
|
|
hasrestart => true,
|
|
subscribe => File['/etc/ssh/sshd_config'],
|
|
}
|
|
file { '/etc/ssh/sshd_config':
|
|
ensure => present,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0444',
|
|
content => template('ssh/sshd_config.erb'),
|
|
replace => true,
|
|
}
|
|
}
|