system-config/modules/ssh/manifests/params.pp
Dan Prince 0a1737eb18 Update ssh module to support RHEL.
Parameterizes the ssh module so that it supports both Ubuntu and
RHEL.

Change-Id: I9163e2f41d9a25df5f757592e642073fc19001f5
Reviewed-on: https://review.openstack.org/23299
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-03-04 18:00:30 +00:00

20 lines
476 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'
}
'Debian', 'Ubuntu': {
$package_name = 'openssh-server'
$service_name = 'ssh'
}
default: {
fail("Unsupported osfamily: ${::osfamily} The 'ssh' module only supports osfamily Ubuntu or Redhat(slaves only).")
}
}
}