Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 430 Bytes
class sshd {
package { 'openssh-server':
ensure => "installed",
}
file { '/etc/ssh/sshd_config':
content => template("sshd/sshd_config"),
require => Package["openssh-server"],
notify => Service["ssh"],
}
service { 'ssh':
ensure => running,
enable => true,
require => Package["openssh-server"],
hasstatus => 'false',
status =>"/etc/init.d/ssh status|grep running",
}
}
You can’t perform that action at this time.