openssh: add monit integration

This commit is contained in:
Rico 2022-01-04 13:37:32 +01:00
parent d5195f3355
commit d317ef17d0
Signed by: stillbeben
GPG key ID: AE1066B5BD0B5041

View file

@ -1,5 +1,21 @@
from bundlewrap.metadata import atomic
defaults = {
'monit': {
'services': {
'openssh': {
'bin': '/usr/sbin/sshd',
'systemd_unit': 'sshd',
'ports': {
'22': {
'protocol': 'ssh',
},
},
},
},
},
}
@metadata_reactor.provides(
'firewall/port_rules/22',
)