6d714bb482
Add parameters for SUSE based distros. Change-Id: I5efbe49c72089f0dc59663f32009f85dfc3bb6e6
27 lines
719 B
Puppet
27 lines
719 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'
|
|
}
|
|
'Suse': {
|
|
$package_name = 'openssh'
|
|
$service_name = 'sshd'
|
|
$sftp_path = '/usr/lib/ssh/sftp-server'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} The 'ssh' module only supports osfamily Debian, RedHat or SUSE (slaves only).")
|
|
}
|
|
}
|
|
}
|