if node.os != "alpine": raise BundleError(f"{node.name}: OS {node.os} is not supported.") from os.path import join svc_openrc = { "fail2ban": { "enabled": True, "running": True, "needs": { "pkg_apk:fail2ban", "bundle:firewall", "bundle:tgnotify", }, }, } files = { } repo.libs.gen.add_files_recursive( files, join(repo.path, "bundles", "fail2ban", "files"), { "triggers": { "svc_openrc:fail2ban:restart", }, }, ) # TODO: metrics? https://github.com/hectorjsmith/fail2ban-prometheus-exporter