Added ssh::disable class which disables ssh server.
This commit is contained in:
parent
340bf65d56
commit
91ce5b61cf
1 changed files with 12 additions and 0 deletions
|
@ -21,3 +21,15 @@ class ssh::known_hosts {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Disable SSH server.
|
||||
#
|
||||
class ssh::disable {
|
||||
|
||||
service { "sshd":
|
||||
ensure => stopped,
|
||||
enable => false,
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue