mirror of https://github.com/zulip/zulip.git
puppet: Ensure that sshd is restarted after turning off password auth
(imported from commit 46fef98df9ea1d9ee4038f400cc7c8689d80a0ec)
This commit is contained in:
parent
10f3853abd
commit
beb2ecf5c9
|
@ -99,10 +99,12 @@ class humbug::base {
|
||||||
ensure => file,
|
ensure => file,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# TODO: we should really just have a known sshd_config file
|
||||||
common::line { 'no_password_auth':
|
common::line { 'no_password_auth':
|
||||||
file => '/etc/ssh/sshd_config',
|
file => '/etc/ssh/sshd_config',
|
||||||
line => 'PasswordAuthentication no',
|
line => 'PasswordAuthentication no',
|
||||||
require => Package['openssh-server'],
|
subscribe => File['/etc/ssh/sshd_config'],
|
||||||
|
notify => Service['ssh'],
|
||||||
}
|
}
|
||||||
|
|
||||||
service { 'ssh':
|
service { 'ssh':
|
||||||
|
|
Loading…
Reference in New Issue