ae0f98e0cd
Stop using latest for packages installed by puppet. This way, all system packages get updated, not just some random ones. The unattended-upgrades config will email root. It is configured for openstack servers and jenkins slaves, but not template hosts so that it doesn't interfere with spin-up. Also, fix some bits in the gerrit module that were causing continuous restarts on gerrit-dev. Install emacs. Change-Id: I51c9083ccd3669f284fce4b50c36a37a0cac92d8
20 lines
519 B
Puppet
20 lines
519 B
Puppet
class ssh {
|
|
package { openssh-server: ensure => present }
|
|
service { ssh:
|
|
ensure => running,
|
|
hasrestart => true,
|
|
subscribe => File["/etc/ssh/sshd_config"],
|
|
}
|
|
file { "/etc/ssh/sshd_config":
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => 444,
|
|
ensure => 'present',
|
|
source => [
|
|
"puppet:///modules/ssh/sshd_config.$operatingsystem",
|
|
"puppet:///modules/ssh/sshd_config"
|
|
],
|
|
replace => 'true',
|
|
}
|
|
}
|