debian has both status and restart options, in fact restart is
preferable because a stop/start operation can leave sshd broken because the stop wont stop before the start is run. On the next puppet run ssh will be brought back up, but its a hair-raising few minutes while you wonder what happened
This commit is contained in:
parent
90f14f4ae4
commit
96760cc558
1 changed files with 2 additions and 1 deletions
|
@ -247,7 +247,8 @@ class sshd::debian inherits sshd::linux {
|
|||
}
|
||||
Service[sshd]{
|
||||
name => 'ssh',
|
||||
hasstatus => false,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
}
|
||||
}
|
||||
class sshd::ubuntu inherits sshd::debian {}
|
||||
|
|
Loading…
Reference in a new issue