system-config/modules/ssh/manifests/init.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

25 lines
590 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',
source => [
"puppet:///modules/ssh/sshd_config.${::operatingsystem}",
'puppet:///modules/ssh/sshd_config',
],
replace => true,
}
}