4f433a021f
Mostly documentation and parameterised class parameter complaints. Change-Id: I5b3ffa4ad3f707f385165c2d86c891c6bd4c1ae0 Reviewed-on: https://review.openstack.org/16901 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
24 lines
531 B
Puppet
24 lines
531 B
Puppet
# == Class: ssh
|
|
#
|
|
class ssh {
|
|
package { 'openssh-server':
|
|
ensure => present,
|
|
}
|
|
service { 'ssh':
|
|
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,
|
|
}
|
|
}
|