From d317ef17d01b7bfff9fb77296eaab5848da1594e Mon Sep 17 00:00:00 2001 From: Rico Ullmann Date: Tue, 4 Jan 2022 13:37:32 +0100 Subject: [PATCH] openssh: add monit integration --- bundles/openssh/metadata.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bundles/openssh/metadata.py b/bundles/openssh/metadata.py index c533fcb..7e5ef8b 100644 --- a/bundles/openssh/metadata.py +++ b/bundles/openssh/metadata.py @@ -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', )