2011-07-18 17:33:29 +00:00
|
|
|
class ssh {
|
2012-10-08 19:52:17 -04:00
|
|
|
package { 'openssh-server':
|
|
|
|
ensure => present,
|
2011-07-18 17:33:29 +00:00
|
|
|
}
|
2012-10-08 19:52:17 -04:00
|
|
|
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,
|
2011-07-18 17:33:29 +00:00
|
|
|
}
|
|
|
|
}
|