0a1737eb18
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
25 lines
590 B
Puppet
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,
|
|
}
|
|
}
|