system-config/modules/ssh/manifests/params.pp
Monty Taylor 110754ef24 Fix sftp access on CentOS machines
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
2014-04-07 22:19:40 -07:00

22 lines
577 B
Puppet

# Class: ssh::params
#
# This class holds parameters that need to be
# accessed by other classes.
class ssh::params {
case $::osfamily {
'RedHat': {
$package_name = 'openssh-server'
$service_name = 'sshd'
$sftp_path = '/usr/libexec/openssh/sftp-server'
}
'Debian': {
$package_name = 'openssh-server'
$service_name = 'ssh'
$sftp_path = '/usr/lib/openssh/sftp-server'
}
default: {
fail("Unsupported osfamily: ${::osfamily} The 'ssh' module only supports osfamily Debian or RedHat (slaves only).")
}
}
}