puppet: Ensure that sshd is restarted after turning off password auth

(imported from commit 46fef98df9ea1d9ee4038f400cc7c8689d80a0ec)
This commit is contained in:
Zev Benjamin 2013-02-07 18:06:19 -05:00
parent 10f3853abd
commit beb2ecf5c9
1 changed files with 3 additions and 1 deletions

View File

@ -99,10 +99,12 @@ class humbug::base {
ensure => file,
}
# TODO: we should really just have a known sshd_config file
common::line { 'no_password_auth':
file => '/etc/ssh/sshd_config',
line => 'PasswordAuthentication no',
require => Package['openssh-server'],
subscribe => File['/etc/ssh/sshd_config'],
notify => Service['ssh'],
}
service { 'ssh':